New Tool Radar

AI PDF

How to Extract an Invoice Number and Date from a Scanned PDF

Pull the invoice number and date out of a scanned invoice, then verify them against the page before filing the invoice.

Schematic illustration of extracting an invoice number and date: INV-2026-0142 and 2026-11-14 both paste back exactly as printed.

Adobe’s extraction guide says OCR makes a scan’s text selectable and extractable, and warns to compare important totals, dates, names and account numbers with the original image before using them. An invoice number and date are exactly those values.

Use the practice file

A practice document, practice-invoice.pdf. The file is fictional.

Page Content
1 Invoice header: number “INV-2026-0142”, date “2026-11-14”
2 Invoice lines, 5 items
3 Payment terms

Page 1 is the check page: the invoice number is “INV-2026-0142” and the date is “2026-11-14”.

Extract the invoice number and date

Expected result. We checked the Adobe Acrobat and the Adobe Help. We did not run any tool. The checks below are what to expect if the work is done correctly; run them yourself on the practice file.

1. OCR the scan first

Run text recognition on the PDF.

Expected result: The header text selects and searches.

2. Select the invoice number

Drag across “INV-2026-0142” on page 1.

Expected result: The whole number highlights as one token.

3. Copy the number and date

Copy both values into a text file.

Expected result: The file reads “INV-2026-0142” and “2026-11-14”, exactly as printed.

4. Search for the number

Use Find for “INV-2026-0142”.

Expected result: 1 hit, on page 1.

Verdict table

Check Expected result Pass?
OCR the scan first The header text selects and searches. —
Select the invoice number The whole number highlights as one token. —
Copy the number and date The file reads “INV-2026-0142” and “2026-11-14”, exactly as printed. —
Search for the number 1 hit, on page 1. —

Related guides: How to Extract OCR Text from a Scanned PDF into a Word Document — How to Convert a PDF to an Editable Word Document.

Limits

  • An invoice filed under a misread number is lost, and a wrong date ages it wrongly; verify both before the invoice leaves your desk.
  • Extraction copies the text layer, not the page: layout, reading order and table structure can all shift, so verify values against the scan.
  • UNTESTED — no OCR tool was run; all results above are expected results. The practice file is fictional.

Sources

See all