Extract tables with missing grid lines
8 May 2026
On an invoice without vertical rules, the last word of a wrapped description can sit closer to the price than to the first word of its own line. If the parser treats the gap as a new column boundary, later amounts can end up on the wrong items. Keep the source coordinates and isolate the ambiguous row.
Build a local reference for the page
Start with the headings, then inspect several unambiguous lines under them. Locate the repeated right-hand edge of amounts, the item or quantity markers and the vertical distance between neighbouring rows. The printed word “Amount” need not occupy the whole width of its column. Treat the header as an anchor, not a box that alone defines every valid number.
Record page dimensions, rotation, coordinate origin and units. Calibrate again when a later page has a different crop or template. A rigid threshold copied from page one can be as misleading as re-inferring the whole table from one unusual line.
Handle a wrapped description next to an amount
Consider an invoice table containing no vertical rules, where right-aligned monetary amounts sit close to item descriptions. To process this layout accurately, extraction rules must combine source coordinates, header anchors, and row baseline alignment to define distinct column zones.
During extraction, an item description wraps onto a second line, extending horizontally towards the right-aligned unit price and total amount fields. If a parser dynamically recalculates column boundaries for that row, it misinterprets the trailing words as numeric values or shifts the actual price into the description column.
For instance, a description’s second line may end in the stock size “20”, while the amount field on the first line ends in “20.00”. Numeric-looking text alone cannot determine which is the amount. Compare the right-aligned amount edge, row anchor and horizontal span of the description. Check the next item’s starting position before joining a continuation line to the current item.
Save the source crop and candidate values when those tests disagree. Mark the affected row for review, leave later row boundaries intact and continue only where the next reliable anchor is identifiable.
Verifying Extraction Rules Against Operational Limits
Automated extraction systems tested against synthetic fixtures demonstrate clear limits regarding borderless tables. Benchmark evaluations explicitly state limitations, including that no real supplier layouts or missing-grid layouts were evaluated during fixture testing Results. Consequently, operations teams cannot assume that default parsing settings validated on standard grid fixtures perform accurately on unlined invoices.
Furthermore, relying strictly on table reconciliations or sum checks can mask extraction failures. Injected error testing reveals that offsetting errors can leave a calculated table total unchanged at 173.00 despite two individual cell values containing wrong data Results. Operational verification must therefore inspect spatial coordinate alignments rather than relying solely on mathematical totals.
Check the extraction cell by cell
The injected offsetting errors provide a concrete example of why totals are insufficient. For item A01, two units at 12.50 should produce 25.00 but the altered field says 26.00. For A02, three units at 8.00 should produce 24.00 but the field says 23.00. The two differences cancel.
Record the page, bounding region, text, proposed field and reason for holding any uncertain cell. Reconcile the row’s amount with the right source item as well as with the final total. Neither an unchanged total nor success on a gridded fixture validates a new borderless invoice layout.
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).
