Skip to main content
HerePDF

Guide

Scanned vs Text-Based PDFs: How to Tell, and Why It Changes Everything

By Happy Turtle Tech · Published · Updated

Part of the topic Prepare a PDF for an Online Submission

Two PDFs can sit side by side on your desktop, look completely identical when you open them, print the same, and still be entirely different kinds of file. One is 80 KB and you can search it; the other is 24 MB and Ctrl+F finds nothing. Almost every confusing thing a PDF does traces back to this distinction, and once you can spot it, a lot of otherwise mysterious behaviour becomes obvious.

The five-second test

Open the file and try to select a line of text with your cursor. That's it.

  • The text highlights word by word - you have a text-based PDF.
  • Nothing highlights, or a blue box covers the whole page at once - you have a scanned (image-based) PDF.

Two confirmations if you want them. Press Ctrl+F (Cmd+F on a Mac) and search for a word you can clearly see on screen: a text-based PDF finds it, a scanned one reports nothing. Or zoom in to 400% - real text stays crisp at any zoom level because it's drawn from font outlines, while a scan goes soft and pixelated, because you're magnifying a photograph.

What each one actually is

A text-based PDF is what you get when a document is exported directly from software - Word, Google Docs, a spreadsheet, a design tool, a "print to PDF" command. Internally it holds the actual characters, a reference to the fonts they should be drawn in, and coordinates for where each run of text belongs on the page. The viewer reconstructs the page from those instructions every time you open it. Because text is stored as text, it's searchable, selectable, copyable, and tiny.

A scanned PDF is what you get from a scanner, a photocopier's "scan to email" function, a phone scanning app, or converting photos. Each page is a single photograph wrapped in a PDF container. There are no characters in the file at all - only pixels that happen to form shapes your eyes recognise as writing. The file has no idea there are words in it.

There's also a common hybrid worth knowing about. Many scanners and apps run OCR - optical character recognition - and store an invisible layer of recognised text on top of the page image. These files look like scans, are nearly as large as scans, but are searchable and selectable, sometimes with odd results where the recognition guessed wrong. If selecting text gives you slightly garbled words that don't quite match what's printed, you're looking at an OCR layer.

Why the distinction matters so much

File size. This is the big one. A text-based document is a few kilobytes per page; a scanned one can be several megabytes per page. It's also why compression behaves so differently between them - covered in detail in why your PDF is so large.

Searching and copying. A scanned PDF cannot be searched, and text cannot be copied out of it, because there is no text to find. No setting fixes this; the information genuinely isn't in the file. It has to be added by running OCR.

Quality when zoomed or printed. Text-based PDFs are resolution-independent - they render sharply at any size, on any printer. A scan is fixed at whatever resolution it was captured. Enlarge it and you get bigger pixels, not more detail.

Accessibility. Screen readers read text. A scanned page is, to assistive technology, a blank image with no content - which is why scanned documents are a genuine accessibility problem when they're the only version available.

Editing. Correcting a typo in a text-based PDF is fiddly but possible. In a scan it isn't editing at all - you'd be retouching a photograph.

What still works fine on a scanned PDF

It's worth being clear that scanned PDFs aren't broken or second-class for most routine operations. Page-level work doesn't care what the pages contain:

What doesn't work until text is added is anything requiring the file to understand its own text: searching and copying.

If you need a scan to become searchable

You need OCR. The easiest route is a scanner driver or phone scanning app with a "searchable PDF" setting, switched on before you scan. If the scan already exists, HerePDF's OCR PDF tool reads it inside your browser, so the document is not uploaded. It renders each page as a picture, reads the words, and adds them to the PDF as an invisible text layer; the pages themselves look exactly as they did. You can also download the words as a .txt file instead.

What to expect from it, so you are not surprised:

  • Printed text in Latin-script languages only. English, French, German, Spanish, Italian, Portuguese and Dutch. Greek, Cyrillic, Arabic and Chinese, Japanese or Korean are not available, and handwriting is not supported.
  • It reads pixels and can be wrong. A blurry, skewed, low-contrast or very small-print scan produces wrong or missing words. Each page gets a label based on the engine's own estimate of how sure it is, and a page it is very unsure of gets no text layer at all rather than a bad one. That estimate is a guide, not a check, so read anything important against the page.
  • A text layer is not a verification. The searchable PDF is the engine's best reading of the picture. It is not a certified copy, and the hidden words can differ from the words you see.
  • It takes your device's time and a first download. The work happens on your own computer, page by page, so a long document takes a while, and the first run downloads the OCR engine and the language data. It has been tried in Chromium and WebKit (Safari's engine) browsers on a computer; we have not yet run it on a real phone, so how it behaves there is not established.
  • Pages that already have text are skipped by default, so a mixed file is not read twice.

Desktop software such as Adobe Acrobat or the open-source OCRmyPDF will also do it locally, and handles harder cases. Cloud services will do it too - just make a deliberate decision about that if the document is sensitive, rather than defaulting into it. Once a scan has a text layer, Extract Text can pull the words out, since it reads an existing text layer.

The rule of thumb

If a PDF came out of software, it's text-based: small, searchable, sharp. If it came off a piece of glass or through a camera lens, it's a stack of photographs: large, unsearchable, fixed in resolution. When a PDF behaves in a way that surprises you, check which kind you're holding first - the answer is usually right there.

Related

Why Your PDF Is So Large - And What Actually Makes It Smaller - where this distinction has the biggest practical consequence.

Frequently asked questions

Why can I see the words in my PDF but not select or search them?

Because the page is a picture of words rather than words. Your eyes read the image; the file itself contains no text characters for the viewer to select, copy, or search. This is normal for anything produced by a scanner or a phone camera.

Can HerePDF turn a scanned PDF into a searchable one?

Yes, for printed text in English, French, German, Spanish, Italian, Portuguese or Dutch. Converting a page image into real text is called OCR, and the OCR PDF tool does it in your browser: your file is not uploaded, the first use downloads about 2 to 5 MB of OCR files, and it adds an invisible text layer without changing how the pages look. It reads pixels, so it can be wrong on a blurry or skewed scan, it shows the engine's own confidence for each page, and it does not read handwriting or non-Latin scripts. Splitting, merging, and rotating a scanned PDF work without it.