A payslip has one built-in check: gross pay minus deductions must equal net pay. OCR errors in any of the three figures break that check, which is exactly why it is worth running. This guide verifies all three figures on one payslip.
Prerequisites
A scanned payslip PDF and an OCR tool. Payslips carry personal data, so work on a private copy and delete the OCR output when done.
Steps
1. Run OCR on the payslip
Run OCR on the payslip and save the searchable copy. Expected result: gross pay, each deduction and net pay become selectable text.
2. Read gross pay and each deduction
Read the gross pay and every deduction line from the OCR text. Expected result: one gross figure and three deduction figures, each with two decimal places.
3. Subtract the deductions from gross pay
Add the deductions, subtract the total from gross pay, and compare with the net pay in the OCR text. Expected result: the result equals the printed net pay.
4. Record any mismatch by line
Record the line and the OCR figure for any amount that does not fit the arithmetic. Expected result: a note that names the wrong line or confirms the payslip passed.
Practice check: fictional Harbor Cafe payslip, 2026-11-04
The table below is fictional practice material. It lists the three deductions on one payslip; the gross pay is 2140.00 and the net pay is 1699.60.
| Deduction | Amount |
|---|---|
| Income tax | 312.00 |
| Pension | 85.60 |
| Health cover | 42.80 |
| Total | 440.40 |
Expected result. the three deductions add to 440.40, and 2140.00 minus 440.40 is 1699.60, which is the net pay printed on the payslip.
Limits
- The arithmetic check cannot catch two errors that cancel out, so read the gross pay figure from the scan image as a second check.
- 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.
