Skip to main content

Variable: ScanType

@arolariu/website


@arolariu/website / types / ScanType

Variable: ScanType

const ScanType: object

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

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

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): 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?