How to extract text from a scanned PDF

Tell a scan from a text PDF, use OCR only where needed, and check the copied result against the original.

Check whether the PDF already has text

Try selecting a few words in your PDF viewer. If you can select and copy the individual words, start with PDF to Text. Printed pages that were scanned as images often let you select only a whole image or nothing at all. Those pages need optical character recognition, or OCR.

Some documents mix both kinds of page. A cover letter exported from a word processor may be followed by scanned receipts. On a mixed PDF, PocketKit reads the existing text and uses OCR on pages that have no selectable text when you enable that option.

Run OCR on the pages you need

Imagine a six-page expense report with paper receipts on pages 3 and 5. In PDF to Text, enter 3, 5, enable OCR for scanned pages, and choose the receipts’ language. The text download labels both pages so you can find each receipt again.

If one receipt is too small or appears sideways, convert that page to PNG, crop or rotate it, then try Image to Text. For a long scan, select a smaller range. PocketKit scans up to 12 image-only pages per run.

Compare names and numbers with the scan

Check totals, dates and reference numbers while the original is open. An OCR engine can read an 8 as a B or merge two columns into one line. Fix anything that would change the meaning before reusing the extracted text.

Keep the original PDF when its layout matters. The TXT download is easier to copy or search, while the scan preserves the page as it appeared.

References