Home › Blog › Documents

From PDF to spreadsheet: why table extraction fails

Oct 2, 2026 · 5 min read

The short answer

PDF table extraction fails when layouts use merged cells, rotated text or scanned images, because the file stores shapes, not rows. Good extraction combines layout detection, OCR and validation checks.

Why PDFs resist extraction

A PDF is designed to look the same everywhere, not to hold structured data. It stores characters and lines at positions on a page, not rows and columns. A table that looks perfectly clear to you is, to a program, a scatter of text fragments and ruled lines. Turning that back into rows is a reconstruction problem, and it can go wrong in many ways.

Three kinds of PDF

TypeWhat it containsHow to extract
Digital text PDFReal, selectable textLayout analysis, no OCR needed
Scanned PDFImages of pagesOCR first, then layout analysis
Mixed PDFSome text, some scanned pagesDetect each page and treat accordingly

Where extraction fails

A dependable extraction pipeline

  1. Detect whether each page has real text or only an image.
  2. Run OCR on image pages.
  3. Detect the layout: find the tables and their boundaries.
  4. Extract rows and columns, resolving merged cells.
  5. Normalise numbers, dates and units.
  6. Validate the result and keep a reference to the source page.

Validation checks that catch errors

CheckWhat it catches
Row totals against stated totalsMisread numbers
Row count against the documentMissing or duplicated rows
Column typesText in numeric columns
Dates in a plausible rangeOCR confusion between digits
Spot checks by a personSystematic layout mistakes

Keeping a human in the loop

Automatic extraction is fast but not perfect, especially on scans of poor quality. The most reliable approach sends only low-confidence rows or pages for human review, and records the source page for every row so a reviewer can verify it in seconds. That combination keeps the speed of automation and the trust of a manual check. See our PDF data extraction service and the supplier price list scenario.

A realistic example

A distributor receives a forty-page supplier price list as a PDF. The header repeats on every page, product categories appear as merged rows across all columns, and some prices carry footnote marks. A simple tool copies the text but scrambles the rows. A proper pipeline detects the table on each page, drops the repeated header, treats the merged category rows as labels that apply to the products beneath them, strips footnote marks from prices, and checks that the number of rows matches the document. The finished spreadsheet can then be compared with last month’s list automatically.

Choosing what to automate

Documents with a stable layout that arrive regularly, such as monthly price lists or standard invoices, automate very well, because the extraction is built once and reused. One-off documents with unusual layouts may be faster to handle by hand. A sensible approach is to automate the repeating formats, send the doubtful pages to review, and keep the rare ones manual.

Output formats and what comes next

Most teams want a spreadsheet or CSV, while systems integrations prefer JSON or an API. Whatever the format, keep column names consistent from one delivery to the next, and keep the source page for each row. Consistent structure is what lets you compare periods, load data into other tools and trust the history. Related: our legality checklist covers questions about the documents you collect.

Quick checklist before you extract

Where this applies

See the platforms and fields we cover for Documents & PDFs.

Frequently asked questions

Why does copying a table out of a PDF fail?

Because the PDF stores positioned text, not a real table, so rows and columns are lost when you copy.

Can scanned PDFs be converted to spreadsheets?

Yes, using OCR followed by layout analysis and validation, though image quality affects accuracy.

How do I know the extracted data is correct?

Check totals, row counts and data types, and keep a reference to the source page for every row.

How Parseeon helps

We build and maintain the collection, clean and match the data, and deliver it as CSV, API or dashboard. Ask for a free sample to see it on your own targets.

Get a free sample

More guides

Food

Why one burger can cost two different prices on two apps

Same dish, different menu price, different fees. Here is how to read the gap properly.

Nov 3, 2026 · 5 min read
Food

The anatomy of a delivery fee: what is really in the number

Delivery, service and surge charges stack up. A simple way to break them apart.

Nov 1, 2026 · 4 min read
E-commerce

Product matching explained: are these two listings the same item?

Titles lie, images repeat and bundles hide. How matching really works.

Oct 29, 2026 · 6 min read