Giacomo Mantovani

Article · October 14, 2026 · By Giacomo Mantovani

Extracting data from PDFs, delivery notes and quotes with AI

Supplier PDFs, delivery notes, quotes and scans still get re-keyed by hand. What AI extraction does reliably today and how to keep its errors out of your ERP.

  • back-office automation
  • document AI
  • data extraction
  • OCR
No extracted value goes into the ERP on trust. ~30 checks per document, −84% manual work, 2,500+ documents a day.

Most finance and purchasing teams still have someone opening supplier PDFs and typing quantities, part numbers and totals into the ERP. Delivery notes, quotes, invoices from small suppliers, signed forms that were printed and scanned back in. AI can take most of that typing away, as long as you point it at the right documents and decide upfront what happens when it gets something wrong.

Which documents actually need AI extraction?

Documents that already arrive as structured data do not. An e-invoice sent over the Peppol network or an order received through EDI is a machine-readable file with defined fields, and an import job handles it more cheaply and more reliably than any model. Running AI on those adds cost and a new way to fail.

AI extraction earns its place on everything else. That usually means PDF invoices from suppliers who are not on an e-invoicing network, delivery notes and packing slips, quotes and price offers, contracts, and paper forms that come back as scans or phone photos. None of these share a schema, and every supplier lays them out differently and changes the layout without telling you.

What can AI reliably extract from a PDF today?

On a PDF exported from accounting or ERP software (selectable text, clean layout), extracting header fields is reliable: supplier name, dates, document numbers, VAT or tax IDs and totals. It also works on layouts the system has never seen, which is the main improvement over the old coordinate-based templates.

Line items are where it gets harder. A delivery note with eighty lines across three pages, merged cells and repeated headers is exactly where extraction drops or duplicates a row and nobody notices. Skewed scans, faxes and photocopies of photocopies hurt OCR quality before the model even sees the text. Handwriting is still the weakest point: a quantity corrected in pen on a delivery note can be read, but it should never be accepted without a check.

Reliability by content type
ContentReliability todayWhat it needs
Printed text in native PDFs (headers, dates, tax IDs, totals)HighFormat and consistency checks
Short, regular tablesGoodLine sum compared with the total
Long, multi-page tables with merged cellsVariableRow counts, reconciliation, review of doubtful cases
Low-quality scans and phone photosVariableDedicated OCR and a confidence threshold
Handwriting, stamps, pen correctionsLowHuman review, always

Should you use OCR with rules, an LLM, or a hybrid?

OCR with rules (per-supplier templates, regular expressions, fixed positions) is cheap per page and predictable. It breaks as soon as a supplier changes their template, and every new supplier needs setting up. It makes sense when you have a handful of stable suppliers.

An LLM that reads the document and returns fields in a fixed format handles new layouts with no setup and understands context such as "partial delivery" or "price valid for 30 days". It costs more per page, and its errors are plausible: it can write a believable number that is wrong.

Every document pipeline I have taken to production has been hybrid. An OCR and layout service reads the document, an LLM interprets the fields, and deterministic checks decide whether the result can be accepted. In the financial statement extraction pipeline, each document goes through about 30 checks, for example totals that must reconcile. Documents that pass all of them clear with no human step, and the rest go to review.

Three approaches compared
OCR + rulesLLM onlyHybrid (OCR + LLM + checks)
New layoutsConfigured one by oneHandled without setupHandled without setup
ErrorsObvious (empty field)Plausible, hard to spotCaught by the checks
Cost per pageLowHigherHigher, plus the checks
MaintenanceHigh if suppliers change oftenLowMedium (the check rules)
Use it forFew suppliers, fixed layoutsPrototypes, low volumeProduction, data that lands in your ERP

How do you know the extracted data is correct?

Extraction without checks moves the work around: instead of re-keying, someone re-reads everything. Useful checks are usually simple. Line items should add up to the total, net plus tax should equal the invoice total, a VAT number should have a valid format, the supplier should exist in your master data, and the purchase order quoted on a delivery note should match an open order with compatible quantities.

The second tool is comparing against data you already hold. In the inheritance document checks built for a major Italian bank, legal documents are compared with the bank's own records. When a check fails, the file goes to an operator with the specific reason, so the operator looks at one discrepancy instead of re-reading the whole file. Handling time dropped by 80%.

Who reviews low-confidence fields, and how much manual work is left?

Human review is part of the design. The reviewer needs the original document next to the extracted fields, with only the problem fields highlighted, and should be able to fix and confirm in a couple of clicks. If the review screen is awkward, people go back to checking everything and the savings disappear.

How much work remains depends on how many documents pass every check. In the financial statement project, at more than 2,500 documents a day, manual work fell by 84%: analysts only review documents that fail a check, and they know which check failed. Your delivery notes and quotes will give different numbers, and the only way to know them is to measure on a sample of your own documents.

What drives the cost of a document extraction system?

I will not quote generic figures because they vary too much, but the cost drivers are always the same. Volume matters, meaning pages per month and the peaks. So does layout variety: ten suppliers or three hundred, native PDFs or scans. The number of fields counts, especially if you need line items and not only header data. Then come the ERP integration and your data constraints. For banking clients, models ran on Azure OpenAI inside the client's EU cloud, with an audit trail on every document and no sensitive data in logs, and that shapes both the project and the infrastructure.

Model cost per page is usually the smallest line. Defining the checks, building the review screen and integrating with your systems take most of the effort, and they are also what makes the system work.

How do you start automating data extraction from supplier documents?

A five-step path
StepWhat to doOutcome
1. Pick one flowOne high-volume document type, such as inbound delivery notesA measurable scope
2. Collect a sampleA few hundred real documents, including the ugly onesAn honest test set
3. Define fields and checksWhat the ERP needs and which rules verify itWritten acceptance criteria
4. MeasureHow many documents pass every check and how many errors slip throughThe number you decide on
5. Integrate with reviewConnect the ERP and the queue for doubtful casesA flow in production

If you have not yet picked which process to automate, the guide on which back-office tasks to automate first with AI covers how to choose.

What mistakes should you avoid when extracting data from documents?

The first is running AI on data that is already structured, such as Peppol e-invoices or EDI orders. The second is judging the system on average field accuracy, when what matters is how many documents clear automatically without an error reaching the ERP. The third is testing only on clean PDFs and finding out in production that half the delivery notes arrive as phone photos. The fourth is leaving out human review, or building one that forces people to re-read everything. And in regulated sectors, sending documents with personal data to an external service before deciding where the models run and what ends up in the logs.

If you work in a regulated industry, the document AI service for banks and regulated companies page describes how I set up pipelines, checks and audit trails.

Next step

Still re-keying delivery notes or supplier PDFs?

Send me a few sample documents and I will tell you what can be extracted automatically and with which checks.

Let's talk

Frequently asked questions

Do I need a separate setup for every supplier?

Not with an LLM-based approach: the model reads new layouts without a per-supplier template. You still define the fields and the checks, and those are the same for every supplier of a given document type.

Can AI read delivery notes photographed on a phone?

Yes, if the photo is legible, but quality drops with shadows, folds and skewed angles. Measure how many documents arrive that way and route those below a confidence threshold to review.

Can the documents stay inside the EU?

Yes. In my banking projects the models ran on Azure OpenAI in the client's EU cloud, and a pipeline can also run on your own infrastructure, such as OpenShift. Decide this before any code is written.

How many documents do I need to get started?

For a first measurement, a few hundred real documents of one type, without removing the difficult ones. They are for counting how many would pass every check, not for training a model.

Author

Giacomo Mantovani

AI Engineer & Consultant for Companies and Agencies

LinkedInGitHub

Next step

Tell me the workflow. We scope it on a free call, then a working version is live within 10 days.

Book a scoping call

Related articles