New Tool Radar

PDF Table Extraction

How to Check Table Borders in a Scanned PDF After OCR

Check whether the ruled lines of a scanned table survive OCR well enough that rows and columns stay separate in the text.

Schematic illustration of a ruled table in a scanned PDF: after OCR the value 42 highlights alone and the four rows paste in order.

A table without its borders is a pile of numbers: if OCR drops the ruled lines, a value can drift into the wrong column. Adobe’s extraction guide warns that tables can flatten into unstructured text during extraction, so the check is whether each value stays with its row and column.

Use the practice file

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

Page Content
1 Introduction, no tables
2 Ruled table: 4 rows, 3 columns; cell B2 holds “42”
3 Second table, no borders

Page 2 is the check page: the cell in row 2, column B holds “42”.

Check the bordered table

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 value

Drag across “42” in the table on page 2.

Expected result: “42” highlights alone, not joined to its neighbours.

2. Copy the table

Select the whole table and paste it into a text file.

Expected result: The four rows paste in order, each row’s three values together.

3. Check the row order

In the pasted text, find the row containing “42”.

Expected result: The row reads in the same left-to-right order as the printed table.

4. Compare with the borderless table

Copy the table on page 3 the same way.

Expected result: Note whether its rows also stay in order; if they do not, the borders were doing the work.

Verdict table

Check Expected result Pass?
Select the value “42” highlights alone, not joined to its neighbours. —
Copy the table The four rows paste in order, each row’s three values together. —
Check the row order The row reads in the same left-to-right order as the printed table. —
Compare with the borderless table Note whether its rows also stay in order; if they do not, the borders were doing the work. —

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

Limits

  • Borders help OCR keep rows apart, so a bordered table that pastes cleanly proves little about a borderless one; check each table on its own.
  • 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