New Tool Radar

PDF Table Extraction

How to Check Table Headers in a Scanned PDF After OCR

Check whether the header row of a scanned table is recognised as headers, so column names stay attached to their columns.

Schematic illustration of a scanned table with a header row: after OCR the header Item, Quantity, Price appears first and the values line up under it.

A table whose header row is misread loses the meaning of every column below it. Adobe’s extraction guide warns that a number may be recognised correctly but end up separated from the row, column or label that gave it meaning, and the header is that label.

Use the practice file

A practice document, practice-table-headers.pdf. The file is fictional.

Page Content
1 Table with header row “Item | Quantity | Price”
2 Same table continued, 5 rows of data
3 Notes, no tables

Page 1 is the check page: the header row reads “Item | Quantity | Price”.

Check the header row

Expected result. We checked the Tesseract manual and the Adobe Acrobat. We did not run any tool. The checks below are what to expect if the work is done correctly; run them yourself on the practice file.

1. Select the header

Drag across “Quantity” in the header row on page 1.

Expected result: “Quantity” highlights exactly.

2. Copy the table

Select the table on page 1 and paste it into a text file.

Expected result: The header row appears first, before the data rows, in the pasted text.

3. Check the columns line up

In the pasted text, find the value under “Price” in the first data row.

Expected result: The value sits in the Price position, not under Quantity.

4. Check the continued table

Copy the table on page 2 the same way.

Expected result: The header is not repeated mid-table, and the rows still line up with the page 1 headers.

Verdict table

Check Expected result Pass?
Select the header “Quantity” highlights exactly. —
Copy the table The header row appears first, before the data rows, in the pasted text. —
Check the columns line up The value sits in the Price position, not under Quantity. —
Check the continued table The header is not repeated mid-table, and the rows still line up with the page 1 headers. —

Related guides: How to Use OCR Confidence Scores to Target Proofreading — How to Add a Searchable Text Layer to a Scanned PDF.

Limits

  • If the header row is dropped or merged into the first data row, every value below it is suspect; verify the header before trusting any column.
  • OCR does not repair a bad scan: blur, skew and low contrast still produce errors, so check the words that matter against the visible page.
  • UNTESTED — no OCR tool was run; all results above are expected results. The practice file is fictional.

Sources

See all