Skip to main content

Variable: ScanType

@arolariu/website


@arolariu/website / types/scans/Scan / ScanType

Variable: ScanType

const ScanType: object

Defined in: types/scans/Scan.ts:48

Represents the document format type of a standalone scan.

Type Declaration​

JPEG​

readonly JPEG: "JPEG" = "JPEG"

JPEG image format

PNG​

readonly PNG: "PNG" = "PNG"

PNG image format

BMP​

readonly BMP: "BMP" = "BMP"

BMP image format

TIFF​

readonly TIFF: "TIFF" = "TIFF"

TIFF image format

HEIF​

readonly HEIF: "HEIF" = "HEIF"

HEIF image format

HEIC​

readonly HEIC: "HEIC" = "HEIC"

HEIC image format

PDF​

readonly PDF: "PDF" = "PDF"

PDF document format

OTHER​

readonly OTHER: "OTHER" = "OTHER"

Other or unsupported format

Remarks​

Identifies the file format of uploaded documents for proper processing pipeline selection. Different formats require different OCR strategies and preprocessing steps.

Supported Formats:

  • Image formats (JPEG, PNG, BMP, TIFF, HEIF, HEIC): Direct OCR processing
  • PDF: Multi-page document extraction with embedded text detection
  • OTHER: Fallback processing with format detection

Example​

const scan: Scan = {
scanType: ScanType.JPEG,
// ... other properties
};
// was this page useful?