Why can’t I search or copy text in my PDF?
You press Ctrl+F and the PDF finds nothing, even though the word is right there on the page, or you try to copy a paragraph and nothing is selected. Both problems have the same few causes, and a ten-second test tells you which one you have.
The ten-second test
Try to select a single word with the mouse, or with a long press on a phone.
- Nothing highlights, or the whole page highlights as one block: the page is a picture with no text in it. See "The page is a picture" below.
- The word highlights, but copying is blocked or pastes nothing: copying is restricted. See "Copying is restricted".
- Copying works but pastes symbols or nonsense: the text layer is broken. See "The text layer is broken".
- Copying works, but search misses some words: see "Search misses words that are there".
The page is a picture
Scanned documents, faxes, photos of paper and screenshots saved as PDF hold pictures of text. To your eyes it is text; to a computer it is pixels. A PDF can also become a picture by accident:
- compressing it in a mode that turns pages into images, such as the Maximum mode of Compress PDF;
- printing it to PDF through a printer setting that prints pages as images;
- some apps' "flatten" or "optimise" options.
Fix: run OCR PDF. It reads the words on each page in your browser and adds them to the PDF as invisible text placed over the printed words. The pages look exactly as before, but search, select and copy now work in any PDF reader. Choose the language the document is written in; it matters for accuracy. If you still have a version of the file from before it was compressed or printed to PDF, that version is better: its text is exact, while recognised text can contain mistakes.
Many files mix both kinds of page: typed pages with real text and a few scanned pages, such as a signed form at the end. Search works on the typed pages and misses the scanned ones. OCR PDF leaves pages that already have text as they are and reads only the others, so the text of the typed pages is not doubled.
Copying is restricted
A PDF's author can set a permission that tells apps not to allow copying. The text is there and search may still work, but copy is greyed out or pastes nothing. This is common with published reports, ebooks and official documents.
Fix: respect the restriction or ask the author. If you are the owner, or have the owner password, Unlock PDF removes the restrictions and saves an unrestricted copy.
The text layer is broken
Some PDFs embed fonts without the information that says which letter each shape is. The page looks perfect, but copied text comes out as symbols, and search finds nothing because the stored text is not the words you see. The article on garbled text explains this and the options in detail.
Search misses words that are there
- Words split across lines. A hyphenated word at the end of a line is stored as two pieces, "infor-" and "mation", so searching for "information" may miss it. Search for part of the word.
- Ligatures. Some fonts draw "fi" and "fl" as one shape. Depending on how the PDF was made, search for "find" may fail while "nd" succeeds.
- Mistakes in recognised text. If the PDF was made searchable with text recognition, a word may have been read wrongly, such as "lnvoice" for "Invoice". Try a shorter part of the word.
- Text in form fields and comments. Some readers do not search the answers typed into form fields or the text of comments.
Getting the text out
Once the text is searchable, PDF to Text saves all of it as a plain text file, with a marker before each page, and PDF to Word turns it into an editable document. PDF to Word can also recognise scanned pages itself if you tick its Recognise text option.
Keeping text searchable next time
When you compress, choose Recompress images, which leaves text alone. When you scan, use the scanning app's text recognition option if it has one, or run OCR PDF straight after scanning. When you save from another app, choose Save as PDF or Export to PDF rather than printing to PDF. The guide to compressing a PDF without losing searchable text covers the compression side.