Northwind Electronics ENTERPRISE
#503

Document Intelligence

Upload an invoice, receipt, PO or quotation (PDF, text or image) and get its type, fields, line items and checks.

Technique: Keyword classifier + field extractors + arithmetic validation; PDFBox for PDF text
Read the code: src/main/java/com/study/advlab/docintel/DocumentAnalyzer.javasrc/main/java/com/study/advlab/docintel/SampleDocuments.java
Paste a document
...or upload a file
  • PDF - text read with Apache PDFBox. Download a sample PDF
  • Image - text read by our OCR engine (#498) first.
  • TXT - read as UTF-8.
1. Document type
QUOTATION
Sample: Quotation · text
INVOICE 0%
RECEIPT 0%
PURCHASE ORDER 0%
QUOTATION 100%
CONTRACT 0%
2. Extracted fields 10 found
FieldValueConfidenceLine
Document number QT-2026-031 90% 3
Document date 05/10/2026 90% 4
Due / valid until 04/11/2026 90% 5
Customer / bill to Siam Sport & Outdoor 85% 6
Vendor / from PEAKLINE OUTDOOR CO., LTD. 60% 1
Tax ID 0105559876541 95% 7
Subtotal 87900.00 90% 12
VAT / tax 6153.00 90% 13
Total 94053.00 90% 14
VAT rate 7 % 95% 13
Line items
DescriptionQtyUnit priceAmount
Trail tent 4P6 8,900.00 53,400.00
Hiking backpack 45L10 3,450.00 34,500.00
3. Validation 7 of 7 checks passed
  • Line: Trail tent 4P
    6 x 8900.00 = 53400.00 (document says 53400.00)
  • Line: Hiking backpack 45L
    10 x 3450.00 = 34500.00 (document says 34500.00)
  • Items add up to the subtotal
    Items 87900.00 vs subtotal 87900.00
  • Subtotal + VAT = total
    87900.00 + 6153.00 = 94053.00 (document says 94053.00)
  • VAT is 7% of the subtotal
    Expected 6153.00, document says 6153.00
  • Due date is after the document date
    2026-10-05 -> 2026-11-04
  • Thai tax ID checksum
    13 digits, check digit correct
Source text highlighted lines were used
1PEAKLINE OUTDOOR CO., LTD.
2QUOTATION
3Quotation No: QT-2026-031
4Date: 05/10/2026
5Valid until: 04/11/2026
6Prepared for: Siam Sport & Outdoor
7Tax ID: 0105559876541
8
9Trail tent 4P 6 x 8,900.00 = 53,400.00
10Hiking backpack 45L 10 x 3,450.00 = 34,500.00
11
12Subtotal: 87,900.00
13VAT 7%: 6,153.00
14Total: 94,053.00
15This quotation is an estimate; prices may change after the validity date.
Recent documents
DocumentTypeConfidenceChecksWhen
Sample: QuotationQUOTATION 100% 7/7 09 Nov 21:16
Sample: InvoiceINVOICE 100% 8/8 09 Nov 21:16
Sample: Contract (no numbers)CONTRACT 100% 0/0 09 Nov 20:56
Sample: ReceiptRECEIPT 98% 6/6 09 Nov 20:56
Sample: QuotationQUOTATION 100% 7/7 09 Nov 20:56
Sample: InvoiceINVOICE 100% 8/8 09 Nov 20:56
Sample: Purchase orderPURCHASE_ORDER 99% 6/6 09 Nov 20:56
Sample: QuotationQUOTATION 100% 7/7 09 Nov 20:39