Extract invoice line items across several pages
20 September 2026
Treat a brought-forward amount as a checkpoint, not another purchase. Keep the physical page and row reference for each extracted line so you can show how the net subtotal was assembled and where a discrepancy begins.
Reconcile a three-page example
Consider a fictional invoice in one currency. Each page repeats the column headings. For this example, assume the invoice has no discounts or other adjustments and shows a separately stated tax amount of 30 units.
| Page | Balances printed for reference | New charge lines | Running total after this page |
|---|---|---|---|
| 1 | Carry forward 125 | 100 and 25 | 125 |
| 2 | Bring forward 125 and carry forward 265 | 80 and 60 | 265 |
| 3 | Bring forward 265 | 35 | 300 |
The five new charges sum to 300. Add the stated tax once for a grand total of 330. If the extraction treats page 2’s 125 and page 3’s 265 brought-forward figures as new lines, it adds 390 too much before tax. Preserve those balances in the verification record even though they stay out of the line-item set.
Inspect the row at each break
Match the repeated column headings against the actual page before excluding them. Check whether the first text on a new page is a continuation of the preceding description rather than a separate charge. A line that wraps across pages should have one identity with both page references and only one charge value.
Compare each running total with its printed checkpoint. If the page-1 balance matches but page 2 diverges, inspect that boundary before editing the grand total. The injected invoice validation cases illustrate why line values and reported totals need independent checks.
Keep unresolved adjustments, rounding and tax treatment in separate fields. Do not change a line or assume a tax rate merely to force a match. Return the extracted lines, their page anchors and the first unexplained difference to the reviewer.
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).
