Skip to main content

Variable: InvoiceScanType

@arolariu/website


@arolariu/website / types/invoices/Invoice / InvoiceScanType

Variable: InvoiceScanType

const InvoiceScanType: object

Defined in: types/invoices/Invoice.ts:97

Represents the document format type of an invoice scan.

Type Declaration

JPG

readonly JPG: 0 = 0

JPG image format

JPEG

readonly JPEG: 1 = 1

JPEG image format

PNG

readonly PNG: 2 = 2

PNG image format

PDF

readonly PDF: 3 = 3

PDF document format

OTHER

readonly OTHER: 4 = 4

Other image format

UNKNOWN

readonly UNKNOWN: 5 = 5

Unknown or unsupported format

Remarks

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

Supported Formats:

  • Image formats (JPG, JPEG, PNG): Direct OCR processing
  • PDF: Multi-page document extraction with embedded text detection
  • OTHER/UNKNOWN: Fallback processing with format detection

Backend Processing: The scan type determines which Azure AI Document Intelligence model is used for text extraction and layout analysis.

Example

const scan: InvoiceScan = {
scanType: InvoiceScanType.PDF,
location: "https://storage.arolariu.ro/invoices/doc.pdf",
metadata: {}
};

See

InvoiceScan for the complete scan object structure

// was this page useful?