BlogNovember 16, 2026

How to OCR a Scanned Invoice PDF and Check the Totals

A supplier sent the invoice as a scan. It opens, but Ctrl+F finds nothing, and you cannot copy the amounts into your spreadsheet, because the page is a picture of text rather than text. You need OCR (optical character recognition) to turn the picture into words you can search and select.

Most guides stop there. The step that matters for an invoice is the check: OCR reads printed figures well most of the time, but one misread digit in a total goes straight into your books. This guide runs OCR in your browser, searches the recognized totals, checks them against the invoice's own arithmetic, and saves a searchable copy.

Free, in your browser. No upload, no account.
In this guide
Check first

Is the Invoice Really a Scan?

Open the invoice in the editor and press Ctrl+F (Cmd+F on a Mac). The Find bar opens. Search for something you can see on the page, such as the supplier's name or the word Total.

If nothing is found, the page has no text layer: its words are part of a picture. That is the case OCR is for. If the search finds the words, the invoice already has text and you can skip OCR.

Recognize

Run OCR in the Editor

Four steps. The recognition runs in your browser.

  1. Open the invoice in the LanaPDF editor. Drag it onto the page or click to choose it. It opens in your browser.
  2. Open Tools, then Document, then OCR. A Text Recognition dialog asks for the document language. Leave English selected for an English invoice.
  3. Press Recognize. A progress panel reports the pages as they are read. Cancel stops the run.
  4. Press Ctrl+F and search for a figure. The matches are outlined on the scan, and Enter moves to the next one. Search for Total or for the amount itself, such as 695.94.

English is built into the editor. Any other language downloads its recognition data the first time you use it, about 5 to 15 MB. It is the language data that is downloaded, not your invoice.

Check the arithmetic

Check Every Figure Before It Goes in a Spreadsheet

OCR reads characters. It does not know which number is the total. On a faint scan a 0 can come out as an 8, and a decimal point can drop out. The fix is arithmetic, because an invoice carries its own checks.

Take a worked example. The invoice lists three lines: 240 mailer boxes at $1.85 ($444.00), 36 rolls of tape at $3.40 ($122.40) and 6 pallet wraps at $12.75 ($76.50). The subtotal is $642.90, the sales tax at 8.25% is $53.04, and the total is $695.94. OCR read the tape line as $122.48. Added up, the recognized lines come to $642.98, which does not match the printed subtotal. That mismatch is the signal to look at the scan, where the figure reads $122.40.

FigureWhat it should equalIn this invoice
Line amountQuantity times unit price36 x $3.40 = $122.40
SubtotalThe sum of the line amounts$444.00 + $122.40 + $76.50 = $642.90
Sales taxThe rate times the subtotal8.25% x $642.90 = $53.04
TotalSubtotal plus tax$642.90 + $53.04 = $695.94

Check each line against its description too. A figure that is correct in the wrong row is still wrong for your records.

Troubleshooting

What Usually Goes Wrong

  • The text is garbled. The language does not match the invoice. A Spanish invoice recognized as English reads badly. Run OCR again with the right language.
  • A decimal point is missing. $76.50 can come out as $7650. Compare it with the subtotal before you trust it.
  • The scan is small, faint or skewed. Each of those adds misreads. If you can ask the supplier for a better copy or scan the page again at a higher resolution, do it before you key in figures.
  • Handwriting is not reliable. OCR is built for printed text. A figure written in the margin or signed in by hand needs your own reading.
  • You expected a spreadsheet. The editor saves a PDF, a PNG or a JPG. It does not convert the invoice to Excel, so the figures are copied by hand.
Save

Save a Searchable Copy and Search It Again

Press Save and give the copy a new name, such as INV-20418 searchable.pdf, so the scan you received stays exactly as it arrived. The Save dialog shows the footer note: free saves carry a small LanaPDF footer on each page.

Then open the saved copy and search for each figure you will copy, such as 695.94, 122.40 and 642.90. Each should be found, because the recognized words were saved with the page as text. A figure that is not found was missed in that spot: find it on the scan and type it into your spreadsheet.

Limits

What OCR Here Will Not Do

The Find bar has presets for social security numbers, account and routing numbers, dates, email and phone numbers. It has no preset for amounts, so search for the figure itself or for the word Total. It does not tell you which number is the total, and it does not check the arithmetic for you. The check in the table above is still your job.

Reading a supplier's invoice to pay it or record it is ordinary bookkeeping. Changing the figures in someone else's invoice to claim a larger expense or a refund is fraud. Keep the scan as received, and record the figures you checked in your own books.

FAQ

FAQ

How do I OCR a scanned invoice PDF for free?

Open the invoice in the LanaPDF editor at lana-pdf.com/app, open Tools, then Document, then OCR, and press Recognize with English selected. The recognition runs in your browser, and the invoice is not uploaded. Saving is free too, although free saves carry a small LanaPDF footer on each page.

Why does Ctrl+F find nothing in my scanned invoice?

A scan is a picture of the page, and search only matches text that the file contains. Run OCR first, and the printed words become searchable text, so the totals can be found and checked.

Can I trust the totals that OCR reads?

Not without checking them. Add the line amounts and compare the result with the printed subtotal, then work out the tax from its rate. If a figure disagrees with the scan, the scan is right, and you should type the correct figure into your spreadsheet.

Does LanaPDF turn an invoice into an Excel file?

No. The editor saves a PDF, a PNG or a JPG. Copy the figures you need into your spreadsheet yourself, checking each one against the scan.

Related: if the invoice also needs a correction, see how to edit an invoice PDF. If you are worried about where a scan goes when you run OCR, read how to OCR a scanned PDF without uploading it.

Run OCR on a scanned invoice

Local OCR in your browser. Search the totals, check them, and save a copy you can search.

Edit and export for free. Free exports carry a small LanaPDF footer watermark.