New Tool Radar

AI for Data & Spreadsheets

How to Check AI-Extracted Invoice Totals Against the PDF

Check an AI-extracted invoice table cell by cell against the source PDF so a wrong line total never reaches your accounts.

Schematic illustration for How to Check AI-Extracted Invoice Totals Against the PDF: three numbered steps - Open PDF beside the sheet; Check each line total; Match the grand total.

An AI can extract an invoice table in seconds and still get one line total wrong, and that error flows straight into the accounts if nobody checks. A cell-by-cell check against the PDF takes minutes and catches the digit swaps and shifted rows that totals alone can hide.

Prerequisites

  • The source invoice PDF
  • The AI-extracted sheet, with the PDF open beside it
  • A copy of the source file, so the original stays untouched.

Steps

  1. Open the PDF and the extracted sheet side by side, with the same table visible in both.
  2. Check the row count first: the sheet must have exactly as many line rows as the PDF table.
  3. For each row, read the quantity, unit price and line amount from the PDF and compare with the sheet, ticking each row as you go.
  4. Recompute each line amount as quantity times unit price in a check column, and flag any row where the recomputed amount differs.
  5. Sum the checked line amounts and compare with the grand total on the PDF; do not use the sheet until the two match.

Worked example: Fictional invoice check, Northgate Office Supply

The practice table below is a fictional four-line invoice. The check column recomputes each amount, and the total is the sum of the checked amounts. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.

Item Qty Unit price Amount
Printer paper A4, 80 gsm 10 6.20 62.00
Ballpoint pens, black 24 0.85 20.40
A4 lever-arch files 6 3.40 20.40
Sticky notes, 76 x 76 mm 12 1.15 13.80
Total 116.60

Expected result. Four rows checked, each amount equals quantity times unit price, and the checked total is 116.60, matching the PDF grand total. UNTESTED: no AI extraction was run for this guide; the table shows the expected values a check should produce.

Limits

  • A check that only compares grand totals can miss two errors that cancel out, so every line must be read.
  • If the PDF total itself is wrong, the sheet check will not find it; the supplier must be asked.

Sources

See all