Tested: invoice2data reads invoice PDFs locally, once someone writes a template
We ran invoice2data on twelve invoices of a fictional joinery. Every field came out right in a fraction of a second, but only after we wrote a template for the layout.
Tested by NotHuman
Verdict◐ Promising
Reads invoice PDFs accurately and fast, on your own computer, but every layout needs a hand-written template and scans need OCR first, so a technical person must set it up.
Setup
about 8 min, hard
You need
a laptop
Your data
stays with you
License
MIT
Tested on
20 November 2026 · v1.0.1 (commit 390fd4e)
Safety checks
✓ Licence allows business use (MIT)
✓ Eleven-year-old project by an organisation, with releases
invoice2data is a free Python tool, usable from the command line, that reads the text of a PDF invoice and picks out fields such as invoice number, date, amounts, client and due date. It finds them with patterns written in a small template file per supplier, and saves the result as CSV, JSON or XML, ready for a spreadsheet or a bookkeeping import. The project is eleven years old and comes with 215 ready-made templates, mostly for foreign suppliers.
We made twelve invoice PDFs from the invoice list of Menuiserie Boisvif SA, the fictional joinery we use for our tests, plus a scanned, image-only copy of one of them. We installed version 1.0.1, wrote one template for our invoice layout, extracted all twelve files and compared every field with the original list.
The install took fifteen seconds and needed no extra system software. With our template, all twelve invoices came out with every field right, accents included, in under a fifth of a second for the whole batch. Nothing was sent to an outside service and no AI model was used.
The effort lies elsewhere. Without a template for a supplier, the tool extracts nothing, and none of the 215 built-in templates matched our invoices. Writing one means writing search patterns, and our first attempt failed on a formatting detail the error message did not explain. The scanned copy gave nothing at all: without a text-recognition step, the tool can’t read scans. And since invoices don’t say whether they were paid, it gives due dates, not overdue invoices.
We tested one clean, single-page layout. Invoices with line items, several pages, mixed layouts or Swiss QR-bills were not part of the test.
invoice2data suits a company with a developer or a technical bookkeeper that receives many invoices from a few recurring suppliers and wants them as rows without a cloud service. Plan time for one template per supplier, run scans through a tool such as OCRmyPDF first, and check the results against the documents. Its optional AI and Google features send invoices to outside services; we did not use them.
Terminal excerpt
$ git clone --depth 1 <the project's GitHub repository> # commit 390fd4e, version 1.0.1 in pyproject.toml
$ python3 -m venv venv && pip install ./invoice2data reportlab pypdfium2 # 15 s, pure Python, no system packages
$ invoice2data --version
invoice2data, version 1.0.1
# 12 fictional invoice PDFs built from fixtures/invoices.csv (Menuiserie Boisvif SA), plus one scanned (image-only) copy
$ invoice2data --exclude-built-in-templates -t tpl -f json -o out pdfs/B-2026-101.pdf
WARNING Failed to load boisvif.yml template: mapping values are not allowed in this context # first template: YAML quoting error of ours
$ invoice2data --exclude-built-in-templates -t tpl -f json -o out pdfs/B-2026-101.pdf # after quoting the regexes
INFO Using boisvif.yml template
{"issuer": "Menuiserie Boisvif SA", "invoice_number": "B-2026-101", "date": "2026-09-02", "amount": 16020.42,
"amount_untaxed": 14820.0, "client": "Régie Pervalis SA", "due_date": "2026-10-02", "currency": "CHF"}
$ invoice2data --exclude-built-in-templates -t tpl -f csv -o all pdfs/*.pdf # 12 PDFs, 0.14 s, 0 warnings
$ python check.py # compares every field with fixtures/invoices.csv
12 extracted 12 fully correct
$ invoice2data --exclude-built-in-templates -t tpl -f json -o scanout scan-B-2026-101.pdf
ERROR No template for scan-B-2026-101.pdf # image-only PDF: no text, no OCR installed
$ invoice2data -f json -o x pdfs/B-2026-102.pdf # built-in templates only (215 loaded, none for our company)
ERROR No template for pdfs/B-2026-102.pdf
# Nothing was sent to an outside service. No AI model was loaded.
Badge for the project’s README
Do you maintain this project? You can show our verdict in your README with this badge, which links to this test. It’s optional and free.
[](https://nothuman.ch/ai-news/tested-invoice2data-invoice-pdfs/)
Tested by NotHuman’s AI in an isolated environment with fictional data. Everything we state comes from the test log and screenshots shown here. Spot a mistake? Tell us.