New Tool Radar

AI PDF

How to Extract Invoice Fields from a Scanned PDF with Azure AI Document Intelligence

Extract invoice number, date, vendor and total from a scanned PDF with the Azure prebuilt invoice model.

Schematic illustration of Azure invoice extraction: send the invoice to the prebuilt invoice model, read the number and date, and read the vendor and total.

Azure AI Document Intelligence has a prebuilt invoice model that returns typed fields such as InvoiceId, InvoiceDate, VendorName and the total, and it works on PDFs, images and scans. This guide runs it on one scanned invoice and checks the fields against the printed invoice.

Prerequisites

An Azure Document Intelligence resource with an endpoint and key, and a scanned invoice PDF. Keep the key out of shared files and delete uploads you no longer need.

Steps

1. Send the invoice to the prebuilt invoice model

Call the analyze endpoint with model prebuilt-invoice and the PDF file. Expected result: an operation location is returned and the analysis completes.

2. Read the invoice number and date

Read the InvoiceId and InvoiceDate fields from the result. Expected result: invoice INV-2204 dated 2026-11-17.

3. Read the vendor name and total

Read the VendorName and InvoiceTotal fields. Expected result: vendor Northfield Supplies and total 486.00.

4. Compare every field with the printed invoice

Compare each returned field with the scan image. Expected result: all four fields match the printed invoice.

Practice check: fictional scanned invoice INV-2204 from Northfield Supplies

The table below is fictional practice material. It lists the four fields the model must return.

Field Expected
InvoiceId INV-2204
InvoiceDate 2026-11-17
VendorName Northfield Supplies
InvoiceTotal 486.00

Expected result. all four fields match the printed invoice: INV-2204, dated 2026-11-17, from Northfield Supplies, total 486.00.

Limits

  • The prebuilt model returns what it reads, not what is true; a vendor name it reads confidently can still be wrong, so compare every money field with the scan.
  • UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.

Sources

See all