Variable: InvoiceScanType
@arolariu/website / types/invoices/Invoice / InvoiceScanType
Variable: InvoiceScanType
constInvoiceScanType:object
Defined in: types/invoices/Invoice.ts:97
Represents the document format type of an invoice scan.
Type Declaration
JPG
readonlyJPG:0=0
JPG image format
JPEG
readonlyJPEG:1=1
JPEG image format
PNG
readonlyPNG:2=2
PNG image format
PDF
readonlyPDF:3=3
PDF document format
OTHER
readonlyOTHER:4=4
Other image format
UNKNOWN
readonlyUNKNOWN: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