How to trace an extracted invoice field back to the PDF

3 November 2026

An open notebook with a pen, coloured page tabs and a calculator on a white desk.
Illustrative photograph. Cropped and resized. Photo: “Finance Flatlay Background” — Artsy Crafty / NegativeSpace. · CC0 1.0

When an extracted figure looks plausible but has no source location, leave its verification open. Retain the figure, find the exact input document and locate the printed amount under its actual label. A correct calculation can corroborate a subtotal, but it cannot tell you whether the extraction originally picked the subtotal or another occurrence of the same number.

Build a source record the next reviewer can use

The synthetic invoice SYN-INV-001 illustrates the problem. Two line amounts, USD 100.00 and USD 25.00, sum to the stated subtotal of USD 125.00. Tax of USD 12.50 brings the total to USD 137.50. These numbers are available in the reference record. That record by itself does not establish the page coordinates from which a later system obtained a given value. Ground truth

Trace fieldWhat to record for the subtotal
Source documentInvoice ID plus the file repository’s version identifier, or an input file fingerprint with an explicit description of which file it covers
FieldSubtotal, with its original label and printed currency
Source locationPhysical page, section or table, row label and nearby text; add coordinates if they are available
Source and extracted stringsPreserve each separately, including punctuation and sign
Review outcomeConfirmed, contradicted or location unresolved, with reviewer and evidence

The local extraction record includes an input hash and a time of observation for a test covering three documents. An observation time is different from a supplier’s revision identifier. A hash identifies the bytes it was computed over; it cannot supply the missing page or show which printed field was selected. Test results

Work the unresolved row

Imagine a record contains 125.00 alongside the field name subtotal, but its source-location field is blank. Reopen the approved source file, find the invoice by its identifier, and locate the subtotal label next to the printed amount. The reviewer should be able to repeat the lookup using the saved page and row description. If two pages contain the same value, choose the one whose printed label, document identity and surrounding values support this field. Ground truth

Write the new locator as a reviewed correction and retain the initially unanchored extract. If the original version cannot be recovered, keep the location unresolved. Asking the source owner for that version is more informative than inserting the first search hit or the date the extraction happened. A trace is complete when another reviewer can reach the same printed value from the saved record and explain why it belongs to that field.

Part of the Five checks for data extracted from a PDF invoice guide.

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