Use AI data extraction from PDFs to prepare draft records for a person to check. Allow the workflow to post a record only after its document type passes the tests below and that record clears its own checks.
Start with the pages your staff struggle to read
Build the test set from PDFs your team is authorized to process. Include originals from each regular sender alongside copies with the scan defects you see in production. As an illustrative test case, take a warehouse receiving slip that staff use to record the quantity delivered. Keep the source file and have a receiving clerk mark the order reference, product code, quantity and unit. Give unreadable values and empty boxes separate expected outcomes so you can tell whether the draft guessed.
Save the clerk’s answers before running the extractor. Google Cloud’s Document AI evaluation guide describes comparing predictions with labels on test documents and reporting precision and recall. For this checklist, record how many required fields were missed and how many returned values were wrong, broken out by document type and field. Include the unprocessed files in the results. Save the extractor version and settings so the next run can use the same inputs.
Keep a separate set of whole documents for the final run. If you use copies of the same slip to set up the extractor, put all copies on the same side of the split. Include a supplier or form revision the person setting up the extractor has not used. For each expected answer, save the page and a location on it. Have a second person resolve any disagreements on fields the receiving system will act on. That gives both reviewers the same evidence when they compare the export with the original.
-
Compare the text layer with the visible page
Run a receiving slip exported by the order system and one printed and scanned from the same original. Add a scan with an old or incorrect searchable text layer beneath the visible page. Mark the product code and expected leading zeros from the page image. The test passes when the extractor returns the visible code with its leading zeros or the workflow holds the record when the two readings disagree. The reviewer opens the saved page and location for the product code and checks that it shows the code on the correct page.
-
Rotate a page and crop a required field
Use the faintest legible scan in your batch for this test. Run a copy with a sideways page and another with a required field clipped at the margin. Include a file with a missing page you can detect from its printed page numbers. The test passes when the extractor keeps every readable required value and the workflow sends records with unresolved fields or detectable missing pages to review. Ask for a fresh copy when the clerk cannot recover the number. AWS recommends upright pages and high-quality images, ideally at least 150 DPI, in its Textract best practices.
Make each table survive a page break
-
Join only the rows that belong together
Pick a receiving slip with a repeated header on page two and a description that wraps across the break. In the labeled set, give each item its row number and source pages. Compare the exported rows with that list. The test passes when the extractor keeps the wrapped description in its original row and omits repeated headers from the exported items. Include an unrelated table with the same column titles later in the PDF so the test can detect a false join. Microsoft’s layout model documentation describes splitting a PDF into pages for analysis and reassembling the table afterward. Include that reassembly in the test if your extractor uses it.
-
Keep the unit attached to its quantity
Feed in a form with a merged cell for the unit of measure and a section that switches from cases to individual items. Compare every exported pair with the clerk’s notes. The extractor should keep each quantity with the right item and unit. The workflow should hold rows where a merged cell makes the unit ambiguous. Mark an empty cell separately from a printed zero. In its Textract best practices, AWS identifies merged cells and inconsistent table layouts as possible sources of uneven results.
Check the values that would change a record
-
Show the clerk where a correction came from
Use slips with quantity corrections written by several people. In the example, the dock clerk strikes through a printed quantity and writes the actual count above it. Set the expected outcome to review when there are competing values, and include a clean handwritten number to test transcription. The workflow should show the marked region and proposed value, then hold the correction for approval. Microsoft’s layout model documentation says the model extracts handwritten-style text in supported languages and uses
isHandwrittento flag text it detects as handwritten. Use the flag to direct the clerk to the marked text. The clerk decides whether to accept the correction. -
Recalculate the printed total
Run a slip with a continued quantity subtotal and a final count printed on the last page. Add item quantities only within a common unit, using the same conversion rules as the receiving system. Submit a copy with a missing line and one with two transposed item quantities. The workflow should catch the missing line in the sum and the transposition by comparing each item’s quantity with the labeled answer. When using a receiving record for that comparison, first confirm that dock staff recorded the delivered quantity for each item independently of the PDF. For example, Microsoft Dynamics 365 can base a receipt on the ordered quantity or on a quantity registered at the dock. For a bill with tax or freight, use the corresponding invoice matching rules and include documents with credits and rounding differences in the expected answers.
-
Make the workflow stop at an incomplete record
Submit a file from an unfamiliar layout and one that omits the order reference but prints a delivery reference in the usual spot. The workflow should keep both files out of the posting queue and show which required evidence is missing. When PDFs arrive by email, pair this rule with the email triage permission matrix so an extraction failure can go to staff instead of triggering a reply based on an incomplete record.
-
Open the exported record in the system that will use it
Send test output to a sandbox copy of the receiving system. Include a quantity whose unit the receiving system rejects and an item code that begins with zeros. Compare the saved values with the clerk’s marked slip after the import, including any formatting changes the import makes. The saved record should retain valid codes. The workflow should send the rejected record to the review queue with the rejection reason. Check that staff can fix the draft from that queue and link the saved record back to the original slip.
Give each failure a check the reviewer can repeat
| Document type | Failure to look for | Check that catches it |
|---|---|---|
| PDF with a searchable scan layer | The stored text differs from the number on the page. | Compare the returned code with the marked image crop. |
| Faint or incomplete scan | A numeral disappears at the edge of the scan. | Confirm that the affected field goes to review as unreadable. |
| Table split by a page break | A repeated header enters the export as an extra row. | Compare ordered row IDs and their source pages to the labeled list. |
| Receiving slip with a handwritten edit | The draft adopts the crossed-out quantity. | Require a person to resolve competing values shown on the image. |
| PDF with subtotals and a final count | A repeated subtotal enters the sum as an item. | Recalculate from item rows and reconcile with the printed grand total. |
Count a wrong value that reached the sandbox posting queue separately from a wrong value held for review. For the first release, we would require every critical error in the test batch to be caught before posting. Show the receiving lead the number of tested records beside that result. Track the number held as well. A workflow that sends the entire batch to staff can pass the safety check and still leave the dock with its original workload.
Keep handwriting overrides with the receiving clerk
We would leave handwritten overrides, incomplete totals and unfamiliar layouts in a review queue. Approve a document type for posting only when its labeled cases and exception routes both pass. Rerun the suite when the extractor version or a regular sender’s form changes.
Sources
- Google Cloud, Document AI evaluation. Updated November 10, 2026. Read November 26, 2026.
- Amazon Web Services, Textract best practices. Read November 26, 2026.
- Microsoft Learn, Azure Document Intelligence layout model. Updated May 1, 2026. Read November 26, 2026.
- Microsoft Learn, Dynamics 365 product receipts against purchase orders. Updated January 27, 2026. Read November 26, 2026.