Type Alias: InvoiceScanType
@arolariu/website / types/invoices/Invoice / InvoiceScanType
Type Alias: InvoiceScanType
InvoiceScanType = typeof
InvoiceScanType[keyof typeofInvoiceScanType]
Defined in: types/invoices/Invoice.ts:97
Represents the document format type of an invoice scan.
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?