To get a scanned invoice into Excel, first test whether each page holds real text, an image with an OCR layer, or only an image: select a description, copy it with its amount into a plain-text editor and search for an item code. Text pages can go through a table import, image-only pages need OCR on a working copy, and every recovered code, quantity and decimal still has to be compared with the page image.
A file extension says nothing about this, and one PDF can mix both kinds: a digital invoice with a scanned delivery note appended, or a scan that already carries a searchable OCR layer.
How can you tell if a PDF invoice is scanned or text?
Run three tests on the item table, not on the logo or the page number.
- Select and copy. Select one description and its amount and paste them into a plain-text editor. Readable, correctly ordered text means the item area has a text layer. Nothing selectable, or the whole page selected as one block, points to an image.
- Search. Search for a distinctive item reference. A hit on a page that looks like a photo means an OCR layer sits behind the image, and its characters may be wrong.
- Check every page. Test a middle page and the last page too. A supplier may append a scanned page to a digital invoice.
Synthetic case: page 1 copies as readable text; page 2 copies nothing; page 3 is searchable but “8” comes out as “B”. These are three different review needs. Running OCR over the whole document would not prove the page 1 quantities are right, nor fix page 3’s misread code.
A protected or unusually encoded PDF can also refuse copying. Check access restrictions or ask the vendor for an accessible copy before concluding that the page is a scan.
Which route should you choose for each page?
| What you observe in the item area | What it establishes | Next step |
|---|---|---|
| Full line copies accurately, including code and decimals | Usable text for that line | Try a table import and check column alignment |
| Values copy correctly but in the wrong order | Text exists; reading order differs from the table | Repair field assignment before considering OCR |
| Page image is readable, but no text can be copied | No usable text | Check restrictions, then run OCR on a copy |
Search works, but AB-08 copies as AB-0B | OCR layer present, characters unreliable | Compare with the image, correct or get a better source |
| Image is cropped, rotated or blurred | Evidence missing or unclear | Request the original export or a clearer scan |
Once each page has a route, compare the methods to extract data from PDF to Excel: structured export, spreadsheet PDF import, OCR or dedicated extraction. A text-based table import needs usable text in the item area, but text alone does not guarantee correct rows.
InvoiceLineLab extracts invoice line items from PDF to Excel or CSV and keeps the source page beside each row, so a page that produced no rows, or fewer rows than it shows, is easy to spot against the PDF.
How do you convert a scanned invoice to Excel with OCR?
- Work on a copy. Keep the original PDF untouched and note which file the OCR ran on.
- Run OCR on the image pages only. The W3C technique on OCR for scanned PDFs describes turning page images into actual text, then checking that all text was recognized and appears in the correct reading order.
- Import the recognized table into a working sheet, one row per item.
- Compare with the image: first row, last row, item codes, quantities and decimal marks.
- Reconcile item counts per page and the line net total with the printed subtotal.
If the scan is blurred or skewed, ask for a clearer copy or the vendor’s native export. A sharper source is usually worth more than converting the same unreadable pixels again.
What breaks when an invoice line is copied or recognized?
Synthetic row: the PDF shows reference AB-08, quantity 3, unit price 12.50 and net amount 37.50. Copy the whole row and assign each piece to a field.
- “AB-08 37.50 3 12.50”: all values survived, but the order changed. Reassign fields; OCR is not needed.
- “AB-0B 3 12.50 37.50”: the order is right, but the reference changed. Correct the character from the image.
- “AB-08 3 12,50 37,50”: the decimal mark changed. Check the column’s number format before summing.
The arithmetic 3 × 12.50 = 37.50 supports the amount check, but it cannot prove that AB-08 is the right item. A misread code passes every sum.
How do you keep a mixed invoice from losing its scanned page?
Fictional document: page 1 has 12 item positions as text, page 2 has 8 positions as an image, page 3 holds only the totals. An import returning 12 rows has captured 12 of the 12 + 8 = 20 visible positions. The empty result for page 3 is correct; the empty result for page 2 is a gap. A single “text PDF” label for the document hides the difference.
Keep one register line per page: role (items, totals, attachment), expected positions, recovered positions, review result. Verify all exported positions against the source before calling the table complete. If OCR changes a code or decimal, reopen that exact position; do not accept it because the document total happens to balance.
For one short invoice, typing a few verified rows into a sheet can be quicker than repairing recognition. Keep a page reference on each row and the PDF beside the table. Then check repeated headers and carried subtotals across page breaks: text quality and table boundaries are separate checks. The column layout is described in invoice line items and header fields, the synthetic invoice example shows the target rows, and invoice data validation lists the row checks.
FAQ
How do I know if my PDF has an OCR layer?
Search for a word you can see on the page image. If the search finds it but you cannot select individual characters cleanly, or the copied text differs from the image, the page is most likely an image with an OCR layer behind it.
Can I convert a scanned invoice to Excel without OCR?
If the page is image-only, only by typing the rows yourself: there is no text to import, so software or a person has to recognize the characters. If it already has an OCR layer, check that layer against the image before importing it.
Why does Excel show nothing when I import a scanned PDF?
A table import reads the PDF’s text layer. An image-only page has none, so the import returns no rows for it, even though the page clearly shows items.
Is a searchable PDF the same as a text PDF?
No. A scan with an OCR layer is searchable, but its characters were recognized, not typed, and can contain errors such as “B” for “8”.