New Tool Radar

AI for Data & Spreadsheets

How to Check an AI-Extracted Table Against the Source PDF

Take a table an AI tool pulled from a PDF, compare every value with the source pages, and keep only the rows that match.

Schematic with three steps: Count the rows first; Check values column by column; Re-add the checked column and compare with.

An AI tool can turn a PDF table into a spreadsheet in seconds, but extraction is not verification: rows can be skipped, columns can shift, and a digit can change. Check the extracted table cell by cell against the PDF before the numbers enter a report or a calculation.

What you need

  • The source PDF, open beside the extracted sheet
  • The extracted table in Excel or Google Sheets
  • A note of the PDF page each table section came from

Step 1: Count the rows first

Count the data rows in the PDF table and count the rows in the extracted sheet. If the counts differ, find the missing or extra rows before checking values: a wrapped row or a page break often splits one source row into two.

Step 2: Check values column by column

Work down one column at a time, reading each extracted value against the PDF. Tick each match and mark every difference with the PDF page number, so the fix can be traced back to the source.

Step 3: Re-add the checked column and compare with the PDF total

Sum one numeric column in the extracted sheet and compare it with the total printed in the PDF. If the sums differ, a value is wrong or a row is missing, even if every value you spot-checked looked right.

Worked example: synthetic expense table from a PDF

The table below is a synthetic example. It shows the expected result of checking an extracted table; no PDF was opened and no extraction was run.

Check Count Result
Rows in the PDF table 12 Source
Rows in the extracted table 12 Match
Values matching the source 11 Pass
Values differing from the source 1 One amount differs

Expected result (UNTESTED). 11 of 12 extracted values match the PDF, and 1 amount differs and must be corrected from the source page before the table is used. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • A scanned PDF has no text to extract, so Excel From PDF import cannot read it; OCR is needed first.
  • Merged headers and wrapped rows are the most common causes of shifted columns after extraction.
  • Checking a sample is not the same as checking every value; a total that matches can still hide two errors that cancel out.

Sources

See all