In this illustrative example, a supplier emails a PDF with two invoices. The first spans two pages. The second starts on PDF page 3, which says “Page 1 of 2.” The file ends there. Every visible invoice number and amount could be read correctly while the proposed ERP records are still wrong. A page-by-page extractor could turn the continuation of the first invoice into a second invoice. An extractor that sees the packet as a single invoice could attach the last page to the wrong record.
For an accounts payable (AP) lead, there are two questions to settle before review. Which pages belong to each invoice, and is there evidence that the invoice is complete? In this packet, the first invoice can proceed through normal checks once its two pages are confirmed. The second needs the missing page before it can proceed. The attachment remains the evidence for both decisions.
Compare page grouping with document-level extraction
With page grouping first, read enough of each page to propose invoice starts and continuations. Typical evidence includes a new invoice number beside a first-page header, printed page numbers that restart, or a line-item table that carries over from the previous page. Confirm the groups and pass each group to extraction. A group can be a page selection or a derived PDF. Google Cloud Document AI, for example, returns page references and confidence scores for proposed groups. Your application creates separate PDF files if the next step requires them. Google Cloud Document AI splitter behavior
With document-level extraction, submit the whole PDF and ask the extractor for separate invoice candidates with page references. Use this route when the extractor can demonstrate that it assembles a multi-page invoice correctly and returns enough evidence to check the result. A whole-file input alone gives you no assurance about how the processor relates its pages. Amazon Textract’s ExpenseDocument structure can include ExpenseIndex, SummaryFields and LineItemGroups. The optional PageNumber on an expense field identifies the page where Textract detected the value. AWS also documents that asynchronous expense analysis treats invoice or receipt pages individually, without carrying context between pages. If you use that operation for multi-page invoices, have your application assemble the page-level results into invoice records and validate those groups before review. Amazon Textract ExpenseDocument · Amazon Textract ExpenseField · Amazon Textract asynchronous processing
Start with grouping when scans often mix invoices with statements, cover sheets or supporting documents. An explicit grouping step gives staff a place to correct page assignments before fields are extracted. Consider document-level extraction for a feed where a test set shows that the processor handles the invoice formats and returns field evidence from the right pages. In either approach, check grouping and completeness before creating an ERP draft. A field confidence score tells the reviewer about the field the processor found. Check page membership separately.
Preserve page ranges from the original PDF
Give the received attachment a stable ID, retain the original PDF under AP’s access and retention rules, and record the received page count. Store each invoice candidate with its proposed source page range, any supporting pages, and the revision of the grouping decision. Number pages in the review screen from the start of the original PDF. Keep the printed page label separately. PDF page 3 and the supplier’s “Page 1 of 2” convey different facts.
When extraction runs on a derived PDF, map each derived page back to the original before displaying evidence. In the illustrative packet, local page 1 of the second extract maps to original PDF page 3. If a reviewer assigns pages 2 and 5 to an invoice that arrived out of order, record the explicit list and the approved reading order. A range of 2–5 would bring two unrelated pages into the record. Preserve the source page for required fields and line items where the extractor supplies it. If a field lacks a trustworthy source page, show that evidence gap in review.
Account for every source page. A page can belong to an invoice, be linked as supporting evidence, be explicitly classified as a cover sheet or blank, or remain unresolved. If a boundary changes, save a new revision and re-extract the affected invoices. Any approvals tied to those invoices need to be repeated against the corrected evidence.
Hold an invoice when the last page is missing
In the illustrative packet, page 3 advertises a second invoice page and the received PDF ends there. Mark that invoice as incomplete, record which page is expected, and have AP request the complete invoice through its supplier channel. A total printed on the first page cannot establish that all line items, tax details or later adjustments are present. Keep the incomplete invoice in the intake queue and out of the ERP draft queue.
A page count is strong evidence when it is readable and clearly belongs to the invoice. Many invoices offer weaker signals. A table cut off by the scan or a carry-forward label with no continuation calls for investigation. A missing total can come from an unreadable scan, a layout the extractor handles poorly or a genuinely absent page. Show the last visible page and the specific reason for the hold so the reviewer can decide whether to rescan, correct a boundary or request the missing document.
Keep the first attachment when the supplier resends the invoice. Link the replacement to the held case, check invoice identity and page sequence, and present the new source revision for approval. Check against existing drafts and posted invoices before import, including invoices processed from the original packet. Duplicate Supplier Invoice Detection in ERP
Give the reviewer a boundary decision
Send a contested boundary to an AP reviewer with the pages on both sides, the proposed assignments, and the signal that failed. A repeated supplier logo is weak evidence because two adjacent invoices can share a template. A repeated invoice number plus sequential printed page numbers makes a stronger case for joining pages. Conflicting invoice numbers, a page that could belong to either neighbor, or an overlap between proposed invoice ranges should hold each affected invoice.
Let the reviewer join or split groups, move a page, classify supporting material or mark an invoice incomplete. Record who decided, which pages they assigned, and why. Run extraction on the approved boundaries, then let AP resolve field errors against those pages. Clear invoices elsewhere in the same packet can proceed when unresolved pages cannot belong to them. Carry the approved grouping revision and original PDF reference into the draft record so a second reviewer can retrace the decision.
Once page membership and completeness are settled, apply the same supplier, duplicate and matching controls used for other invoices. For PO-backed invoices, send quantity and price discrepancies through the matching queue. For a supplier that sends a structured Peppol invoice, use that channel’s validation before ERP import. Three-Way Invoice Matching Exception Queue · Peppol Invoice Validation Before ERP Import
Test the pages that are easy to assign incorrectly
Replay representative packets before enabling ERP writes. Include consecutive invoices from the same supplier, a continuation with no repeated invoice number, an interleaved supporting page, a missing last page and a complete resend. Have AP mark expected page membership and completeness before comparing the two extraction approaches. Count split invoices, merged invoices, unresolved pages that passed through and invoices approved with missing pages. Track reviewer time and correction rate separately from field accuracy. An extra invoice inside a packet with mostly correct fields is a boundary error that the field score can hide.
Sources
- Google Cloud documents splitter confidence and page references, and explains how an application can create separate files from the returned boundaries. Document AI splitter behavior
- Amazon Web Services documents optional expense indexes, summary fields, line-item groups and field page numbers. Amazon Textract ExpenseDocument · Amazon Textract ExpenseField
- Amazon Web Services describes how asynchronous expense analysis handles invoice and receipt pages. Amazon Textract asynchronous processing
Audit your invoice intake workflow
Bring a redacted invoice packet and show where AP decides which pages belong together. Insonl can review how that decision reaches the extraction result, the review queue and the ERP draft. The audit is free. Follow-on work is optional and billed separately if you commission it. Request a free AI workflow audit