A purchase order is a promise to pay, and the promise is in the line items: quantity, unit price and line total. OCR can drop a line or misread a quantity, and the order total then hides the error. This guide checks four lines and their total.
Prerequisites
A scanned purchase order PDF and an OCR tool. Work on a copy, and keep supplier pricing private.
Steps
1. Run OCR on the order
Run OCR on the order and save the searchable copy. Expected result: the four line items and the total become selectable text.
2. Read each line quantity and price
Read the quantity and unit price for each line from the OCR text. Expected result: four lines, each with a quantity and a unit price.
3. Check each line total
Multiply quantity by unit price for each line and compare with the OCR line total. Expected result: each line total matches its quantity times its unit price.
4. Add the lines and compare with the order total
Add the four line totals and compare with the order total. Expected result: the four lines add to 405.50, matching the printed total.
Practice check: fictional purchase order PO-5521, 2026-11-11
The table below is fictional practice material. It lists the four lines on one purchase order.
| Item | Line total |
|---|---|
| Printer paper, 10 reams | 74.00 |
| Ink cartridges, 4 units | 168.00 |
| Desk lamps, 3 units | 97.50 |
| Cable pack, 6 units | 66.00 |
| Total | 405.50 |
Expected result. the four line totals add to 405.50, matching the printed order total, and each line total equals its quantity times its unit price.
Limits
- A matching total cannot prove every quantity is right, so check the quantity column against the printed order line by line.
- UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.
Sources
- Adobe Acrobat, Extract key data from scanned PDFs with OCR – Try to select a word first; OCR adds text you can search, select, copy and extract; tables can flatten, so compare totals with the original page. Checked 2026-11-29.
- Tesseract OCR Documentation, output formats – Tesseract supports plain text, searchable PDF, hOCR, TSV, ALTO and PAGE output; –psm sets the page segmentation mode. Checked 2026-11-29.
