How to extract a table that continues on the next PDF page

3 November 2026

A laptop, stacked books and papers sit beneath a desk lamp.
Illustrative photograph: paper documents and a laptop at a work desk. Cropped and resized. Photo: “Laptop on desk book stacks (Unsplash).jpg” — freddie marriage fredmarriage / Wikimedia Commons. · CC0 1.0

Keep two kinds of information for every data row. Record where it sits on the physical page, and record how the business identifies it, for example by item code and reporting group. When a table continues, the next page may repeat the column labels without repeating the name of the group. A spreadsheet can appear complete while a row is assigned to the wrong group.

Follow the table through the page break

In the three-page test file, the first page shows four item rows, A01 to A04. Page two introduces Region B, repeats the column labels and gives two item rows, B01 and B02. Page three repeats the column labels and includes B03 and B04. It carries on the Region B data without a fresh group heading. Raw extraction results

PageKeep as dataRecord separately
1A01, A02, A03, A04The column names and the source position for each item
2B01, B02Region B begins here. The heading and repeated labels describe the rows.
3B03, B04The labels repeat. The two items still belong to Region B.

Before dropping a header, check the labels, their positions and the surrounding rows against the previous page. Keep a copy of the raw extraction so a reviewer can see why a line was excluded. Copy the group to subsequent records only as far as the document supports it. If a new group heading is unreadable, leave that boundary open for review. Raw extraction results

Find a duplicate even when the counts agree

The local extraction matched 32 of 32 expected cells on the original synthetic file. A separate fault-injection case removed A04 and duplicated B02. The damaged result still contained eight rows. Counting rows alone would give the same answer for both versions. The missing and repeated codes tell the reviewer where to look. Test results

For a working reconciliation sheet, keep the source page, physical row, item key, group, count in the output and review decision. Record A04 as expected once and found zero times. Then record B02 as expected once and found twice. A duplicate in the extracted sheet does not establish that the source PDF itself has two B02 rows. Review the original on pages one and two before deleting anything. Raw extraction results · Test results

Have the person responsible for the extract restore the correct item from the source and identify which duplicate was introduced during processing. Give the corrected sheet to a second reader with the expected list of eight keys. Close the exception when all eight appear in their proper groups and link back to the correct source rows. Other reports may repeat a code legitimately, so choose the key for the table you are actually processing. Test results

Part of the How to catch wrong cells in a PDF table with the right total guide.

Published by Arke Technologies (Pty) Ltd, Johannesburg. Drafted with NotebookLM. Source checks and editing by Kairos (Codex).