Cross-Industry & Business Teams

Why Does n8n PDF Extraction Break? We Coded 52 Questions

Why does your n8n PDF workflow break? We coded a year of forum questions. See where it fails, the settings that fix it and a workflow shape that holds up.

November 29, 20269 min read
Hand-drawn pipeline with a broken joint spilling paper before it reaches a box, illustrating where document workflows break

What matters most

  • In a year of n8n forum questions, 29 of 52 about reading documents failed before any data was extracted.
  • Check the file and its binary field name immediately before the Extract From File step.
  • Test a folder of real PDFs before upgrading n8n, since library and version errors can break PDF reading.
  • The built-in PDF operation has no way to read a picture of text, so scans need a second path.
  • Rules, review, duplicate protection and a silence alarm matter as much as the extraction step.

Search for how to extract data from a PDF in n8n and you'll find the same demo many times: a file comes in, an AI node reads it, a row appears in a spreadsheet. It works on the sample invoice. Then a real week arrives, with two attachments on one email, a scan from someone's phone and a locked bank statement.

I wanted to know where these workflows break in practice, so we went through a year of questions on n8n's own community forum. The result goes against how most tutorials spend their time. They are mostly about the AI step. Most of the questions we counted were stuck before the AI saw a single word.

Here is what matters most:

  • We found 52 questions about reading or getting data out of documents among 105 with document-related titles.
  • 29 of those 52 were about the file never arriving at the PDF step, or that step failing to open it.
  • 8 of the 14 opening failures were software library or version errors, not problems with the document.
  • Scans and image-reading setup made up 12 more, and wrong or unusable output 9.
  • Only 2 asked what happens after extraction, which is where a wrong value does its damage.

What we counted

On 29 November 2026 we listed every topic created in the previous 12 months in the "Questions" section of the n8n community forum: 5,560 topics. We kept the 105 whose titles mention PDFs, invoices, receipts, scans, documents or extracting data. Then Claude, an AI model, read each opening post and gave it one code in a single pass.

39 turned out to be about something else, such as billing for n8n itself, or "documents" inside a database or chat app. Another 14 were about making, converting or sending documents. That left 52 about reading them. The full coded list with links is public, so you can disagree with any call. At the time we pulled it, 16 of the 52 had a reply marked as the solution.

The five groups:

  • The file never arrives: 15 questions (29%).
  • The reading step fails: 14 (27%).
  • Scans and text recognition: 12 (23%).
  • Wrong or unusable data: 9 (17%).
  • After extraction: 2 (4%).
Where 52 n8n forum questions about reading documents got stuck
The file never arrives (29%)
15
The reading step fails (27%)
14
Scans and text recognition (23%)
12
Wrong or unusable data (17%)
9
After extraction (4%)
2
Questions created in the 12 months to 29 November 2026. Coded by an AI model in one pass.

The file never arrives

This was the biggest group. In n8n, a file travels with each item as "binary data" under a field name. The Extract From File node looks for a field called data unless you tell it otherwise (that default is visible in the node's source code).

The questions follow from that. An email attachment arrives under a different name, such as attachment_0. A form with several uploads numbers the field names, so a setting that worked for one file fails for three. A step placed between the download and the extraction passes the data on without the file. A link in an email leads to a web page, not to the PDF itself.

What to do: open the step just before extraction and confirm there is a file on the item, and read its exact field name. Set "Input Binary Field" to match. When one message can carry several files, split them into one item per file before extraction. Keep the extraction close to the download, or deliberately carry the file through each step. And check that what you downloaded really is a PDF before you try to read it.

The reading step fails

Here the file arrives and the node can't open it. The errors included "API version does not match Worker version", "DOMMatrix is not defined" and "pdf-parse v1 only", the last one raised in three separate posts. None of those is a problem you can fix by editing the PDF. Some posters reported that PDF workflows stopped working after an update.

What to do: treat an n8n upgrade like any other release. Keep a folder of ten to twenty test PDFs, including ugly ones, and run them on a test copy before upgrading the live one. Know how you'd roll back. Then send every failure to an error workflow that tells a named person which file failed.

Locked PDFs have a simpler answer than many expect. One user had about 200 password-protected statements with a known password. The PDF operation of Extract From File has a "Password" option. Store the password as a protected setting and not as text typed into the workflow. This only applies to files you're allowed to open.

Scans are a different job

The built-in PDF operation reads the text stored inside a PDF. A scan is a picture of a page and stores none. In our PDF extraction test, the free text-based tools we tried recovered no rows from any scanned copy.

So add a check right after extraction: how much text came back per page? If it's close to nothing, send the file down a second path that reads images, either a text recognition service or an AI model that accepts the PDF. In our tests, the better AI models read mild scans very well, and results differed a lot between models. Our LLM vs OCR comparison covers scans, handwriting, Hindi, Urdu and Arabic.

Some posters need everything to stay on their own machines, such as the one asking about local scan reading. That's a real constraint. Settle it before you pick a reader, because it removes most hosted options.

Wrong or unusable data

These workflows run, and the output isn't usable. Tables come back flattened and a chatbot answers with fragments. Dates arrive in a format the spreadsheet won't accept. A long document is too big for the AI step. A three-page PDF comes out as one block of text, which has a setting: turn off "Join Pages" in the node's options to get the text page by page.

For tables, don't flatten a PDF to text and hope an AI model rebuilds it. Either use a tool that returns rows, or give a model the PDF itself and ask for named fields. Then convert dates and numbers to your own formats with ordinary rules, not with another AI prompt.

After extraction: the quiet, expensive part

Only two of the 52 asked about this. One builder of document workflows for clients asked what happens after the review queue: who reviews, how a corrected document avoids being delivered twice, and how you notice that checking has silently stopped. The other asked whether anyone lets a workflow pay invoices with no human approval.

A small count here doesn't mean a small risk. Our own tests show why. In the PDF test, the AI errors were a wrong month, day or digit inside a row that looked normal. In the scan test, one AI model returned a completely blank reply while reporting success on 4 of 96 pages the first time. A workflow shows green for both.

A workflow shape that holds up

Build in this order, and add the AI step in the middle, not first.

  1. Receive and log. Record each file's name, source and a fingerprint of its contents. One item per file.
  2. Check it opens. Right type, not empty, locked or not. Failures go to a person with the file attached.
  3. Route by content. Text inside: read the text. No text: use the image path.
  4. Extract into fixed fields. Ask for the same named fields every time, and reject replies that are empty or the wrong shape.
  5. Check with rules. Totals, date order, date range, reference format, and a match against your supplier or client list. In our PDF test, totals and date order together caught 3 of 4 imperfect AI results, so they aren't enough alone either.
  6. Review the exceptions. Show the reviewer the extracted values beside the original page, and log who approved or changed what.
  7. Write once. Use the fingerprint and a business key, such as supplier plus invoice number, so a retry or a corrected file can't create a second record.
  8. Alarm on silence. An error workflow catches failures. A separate daily count of files in against records out catches the ones that never raise an error.
Workflow diagram: receive and log, check the file opens, route text and scanned files, extract fixed fields, check with rules, send failures to a person, write once, and alarm on silence
The eight steps as one flow. Amber paths go to a person.

Your team keeps approvals and every judgment call. The workflow receives, reads, checks and queues. If records are sensitive, self-hosting n8n keeps the workflow on your servers, but check where the AI step sends the file, because that is a separate decision. For the hosting side, see n8n cloud vs self-hosting cost.

Should this be in n8n at all?

n8n is good at the plumbing: watching an inbox, moving files, calling a reader, routing exceptions, writing to your systems. It is a poor place for heavy custom reading logic. My rule: keep the flow in n8n, and move the reading and the checks into a small service you can test on its own once you have many layouts or a high cost of error. If you're deciding who builds it, see n8n consultant, freelancer or agency, and run your volume through the payback math first.

What this count does not show

These are questions people posted, not a measure of how often workflows fail. Forum users likely lean towards newer builders, and people who solved a problem alone never posted. We only read topics from one section whose titles matched our words, so some were surely missed. We coded the opening post only, with one coder in one pass, and an AI coder can misread a vague post. Treat the order of the groups as a guide and the exact percentages loosely.

FAQ

Can n8n extract data from a PDF?

Yes. The Extract From File node reads the text stored inside a PDF, and has options for a password, a page limit and whether to join pages. Turning that text into reliable fields needs further steps, and scanned pages need a reader that works on images.

Why does my n8n PDF node say there is no binary file?

Usually the file is under a different field name than the node expects, or an earlier step passed the data on without the file. Check the item just before extraction, then set "Input Binary Field" to the exact name.

How do I extract data from a scanned PDF in n8n?

Check how much text the PDF operation returns. If a page comes back nearly empty, send the file to a text recognition service or an AI model that accepts PDFs, then apply the same rule checks as for any other file.

How do I stop an n8n workflow writing the same invoice twice?

Before writing, look up a key that identifies the document, such as supplier and invoice number, plus a fingerprint of the file. If either already exists, send it to review instead of creating another record.

Fix the workflow you have

If your document workflow works on samples and fails on real mail, send us the failing cases and we'll find where it breaks. See document data extraction and our n8n workflow portfolio, or book a free call.

Cross-Industry & Business TeamsHow Do You Extract Data From a PDF Without Losing Rows?Cross-Industry & Business TeamsWhich AI Automation Ideas Actually Pay Back? 13, With MathCross-Industry & Business TeamsWhy Do LLMs Misquote? Stop Letting Them Type the Quote