Extracting data from invoices and PDFs.

Bonbay5 min read

What AI can read.

There are two kinds of PDF. Those containing text, produced by software, and those that are images, from a scanner or a photo. The first can be read directly. The second must first go through character recognition.

Older tools needed a template for each supplier: you specified where each field sat on the page. Language models understand layout. They find the total, the date or the order number on an invoice they have never seen.

They also read line items, legible handwritten notes and documents in other languages. With limits, which we cover below.

The process, from receipt to approval.

The gain comes from the whole sequence, not just the reading. A document that is only half processed automatically needs almost as much handling as before.

So we build a complete workflow, where a person steps in at only one point: approval.

  • The document arrives by e-mail, by upload or by scanning
  • It is identified: invoice, credit note, purchase order, other
  • The relevant fields are extracted
  • Automatic checks verify consistency
  • The data is proposed in the software, alongside the document
  • The person approves, corrects or sends it for manual processing

The checks that make the result reliable.

A model can misread a figure. So we do not take its word for it. We check by calculation: does the net amount plus tax equal the total? Do the line items add up?

We also cross-check with what you already know. Does the supplier exist in your database? Does the order number match an open order? Has this invoice already been entered?

When a check fails, the document is not rejected. It is flagged, with the reason. The person knows where to look.

The problem cases.

Skewed scans, dark photos, stamps over the amounts, multi-page invoices with carried-forward totals: all of these degrade reading. So do complex tables, when the columns aren’t clear.

You need to accept this from the outset. Some documents will go to manual processing, and that is normal. The aim is for routine cases to go through on their own and for difficult cases to be flagged, not for everything to be automatic.

If many documents are unreadable, the right answer sometimes lies upstream: ask suppliers for a PDF rather than a scanned paper copy. The roll-out of mandatory e-invoicing between businesses in France points the same way. For the details, see the official French tax website.

Start with one type of document.

Choose the document you receive most often. Gather a varied sample, good and bad. Test the reading on it and measure errors field by field.

Once this first type is reliable, add the others one at a time. Trying to handle everything from the outset complicates testing and muddies the results.

Think about archiving and confidentiality. These documents contain third-party data, sometimes personal. We choose the tool and hosting accordingly, and settle this during the audit.

Further reading.

Bonbay. Published 15 September 2026.

Share this articleSend by e-mail

In short, your questions.

Do you need a template for each supplier?

No, that is the point of language models. They adapt to new layouts. We can add rules for a supplier whose document is unusual.

Can you remove all human review?

We advise against it at first. Over time, documents that pass every check can be approved more quickly. Keeping a human eye on an accounting entry remains prudent.

Does it work with our accounting software?

If the software accepts imports or offers an API, yes. Most do. We check before proposing a plan.

Can handwritten documents be read?

Neat handwriting reads fairly well; hurried handwriting much less so. We test on your own documents before promising anything.

Where are our documents processed?

It depends on the tool chosen. Options hosted in Europe exist. We choose with you based on how sensitive the documents are and your obligations.

Shall we talk it over?

30 minutes to apply this to your business.