LHTSOFT Learn · Understand the why

Why can't I select text in a PDF? Check text versus scans

A PDF page can look readable but still contain no selectable letters. A scanner may have stored the page as one image, while a different PDF includes text objects that a viewer can search and copy. This guide walks through tests you can repeat before deciding whether OCR is needed; it does not assume every document behaves the same way.

First test: select, search and copy

Open the PDF in a desktop viewer and drag across a few words. Next, try Find (usually Ctrl+F or Cmd+F) for a distinctive phrase, then paste any selected text into a plain-text editor. A highlight alone is not decisive: some viewers automatically recognize scanned text, and a PDF can contain both images and an invisible text layer. Compare the pasted characters against the visible page, especially numbers and punctuation.

Why two identical-looking pages behave differently

A page may contain text objects with character encodings, raster images of letters, vector outlines, or combinations of these. An image-only page has visible marks but typically no characters for normal PDF text extraction. A searchable scan can retain its picture plus an OCR-derived text layer, so you may be able to search it even though the letters in the picture have not become editable source text.

When OCR is appropriate

If the visible wording cannot be selected or located by search, use an OCR-capable application on a copy. Choose the document language, inspect rotated or faint pages, and review low-confidence words. OCR guesses characters from pixels, so visually similar digits and letters can be confused; it is not a substitute for proofreading an invoice, legal document or form. A reliable text extraction may also need reading-order and accessibility checks.

Choose the next action carefully

For simple reading, an image-only PDF may be sufficient. For search, copying or screen-reader use, a correctly verified text layer is more useful; for modifying layout, OCR by itself may not restore original fonts or editable objects. Do not upload confidential scans to an unfamiliar cloud OCR service. Keep an unchanged original, and compare page count, order and copied values after any conversion.

Compare two original one-page PDFs

  1. Download both LHTSOFT sample PDFs below. Each page visibly says DEMO DOCUMENT and SAMPLE ID LHT-2026-42.
  2. Open learn-selectable-text.pdf. Select and copy SAMPLE ID LHT-2026-42 into a plain text editor; search for LHT-2026-42.
  3. Open learn-image-only.pdf in the same viewer. Try the same search and copy operation. If the viewer offers automatic OCR, turn it off or inspect the file with a text extractor before drawing conclusions.
  4. Compare the results. Use the image-only sample to try OCR on a duplicate, then independently check that the copied ID matches the visible characters.

The supplied text PDF contains actual PDF text objects; the supplied image-only PDF contains a raster page with no PDF text objects. This was verified against these generated files, not inferred from their filenames.

Download practice files