Cannot select text in PDF, how to use OCR to identify it
Text cannot be selected in PDF, usually the page is just a picture without a text layer. This article explains how to first determine the cause, then use OCR to add selectable and searchable text to the scanned document, and introduces troubleshooting and prevention methods.
Key points of this article
- Most of the text that cannot be selected is scanned, and the page is just a picture, with no text layer that can be copied.
- First confirm with two simple tests of selecting and searching, and then decide whether OCR is needed
- Run OCR on scans to select, search and copy text after recognition
- When only some pages contain images, only these pages can be identified to save time.
- OCR results may contain typos, numbers, formulas and names must be checked one by one.
If you open a PDF and want to select a paragraph for copying, but can only drag out a gray selection box; or press Ctrl+F to search for keywords, but there are no results, you will probably think that the file is corrupted. In fact, the more common reason is simple: this PDF is generated by a scanner or taking a photo with a mobile phone. Each page is essentially a picture, and the software only sees pixels, not text.
This article is written for those who have received scanned copies of contracts, papers, old materials or sign-in sheets and need to excerpt, quote or search the content, but find that they cannot select the text. After reading, you can first use two tests to determine whether the problem is caused by the lack of text layer, then use OCR to add selectable and searchable text to the document, and know how to check the recognition results. The key to OCR recognition of text that cannot be selected in PDF is to judge first, then recognize, and finally check.
By clarifying the problem first before taking action, you can avoid repeated processing of files that already have text, and you can also know when OCR cannot solve the problem.
Unable to select text, do you want to do OCR? One sentence conclusion
For PDFs where text cannot be selected, as long as the page is confirmed to be an image, OCR should be performed; if the text can be selected, but the copied text is garbled, OCR may not be the correct method and needs to be processed separately. For details on how to choose, see the table below.
| your situation | Recommended practices | reason |
|---|---|---|
| The entire document cannot be selected, and the search yields no results. | OCR the entire document | The page is a picture, there is no text layer, it needs to be added. |
| Only some pages cannot be selected | Only do OCR on these pages | The remaining pages already have text and do not need to be processed again. |
| Can be selected, but the copied characters are garbled characters or boxes. | Check the font first before considering OCR the page | The text layer exists but there is a problem with the encoding. OCR may help regenerate it. |
| The file is set to prohibit copying | Ask the document provider for a reproducible version | This is a permission restriction and should be respected and not bypassed |
First determine what kind of problem it is
The key to judgment is to look at the symptoms. The following situations have different common causes and confirmation methods. Spend a minute or two testing and you can decide what to do next.
| symptoms | Common causes | How to confirm |
|---|---|---|
| When dragging the mouse, only the selection box appears without text highlighting. | The page is a scanned image, without a text layer | Zoom in on the page to see if there are signs of paper texture, skew, or shadows |
| There are no results for searching keywords, but the words are visible to the naked eye | Same as above | Try searching for common terms on several pages, but if you don't get any results, you'll be sure |
| If you can select it, pasted it will be garbled text or symbols | Font encoding errors | Paste the same content into other software for comparison to see if the garbled text matches |
| Some pages can be selected, some cannot | Mixed files, some pages are images | Flip through page by page and note which pages cannot be selected |
| Prompts are limited when copying or printing | File permission settings | Check if there are permission instructions in the file properties to confirm that the restrictions are set by the author |
Inspect and fix each item one by one
Follow the steps below, make a simple judgment first, then start repairing to avoid detours.
- First, do two tests: randomly select a piece of text, then use the search function to look up a common word. If both failed, it was basically confirmed to be a scan.
- Zoom in on the page to check image quality. If the scanned image has too low resolution, blurry handwriting, creases, or obvious tilt, it will directly affect the recognition results. If the original is blurry, it is recommended to re-scan or take a clear version before performing OCR.
- Confirm the scope of processing. Browse through all pages, record which pages cannot be selected, and decide whether to process the entire page or only part of it.
- Open the OmniDoc desktop client (download link: download.omnidoc.top), and use the PDF editor to open the files you need to process.
- Find the OCR function in the PDF editor, perform recognition on the scanned page, and wait for processing to complete.
- After processing, return to the page, select the text again, search for keywords, and confirm that the text layer has been generated.
- Randomly check important content against the original, especially numbers, amounts, dates, formulas, and names. These items are prone to errors in identification.
- Save as a new file; do not overwrite the original for later verification or reprocessing.
When the selection still shows garbled text
This situation indicates that the text layer already exists, and the problem lies in the font encoding. You can first open the same file in another reader for comparison to confirm whether garbled text appears stably. If garbled text still persists, you can run OCR on that page, allowing the software to regenerate text layers based on the page image and then verify the result paragraph by paragraph. OCR does not necessarily fully reproduce original characters; key content still needs to be manually cross-checked.
What to do if a file has copy restrictions
If the file author has set prohibitions on copying or editing, this is considered a permission restriction. The correct approach is to explain the purpose to the file provider and request a copyable version, rather than hacking or bypassing permissions.
How to Prevent It from Happening Next Time
The following practices can reduce the chances of repeatedly encountering the same problem in the future and make OCR results more reliable.
- Try to use higher resolution during scanning, keeping the original flat and shadow-free to reduce subsequent recognition errors.
- After receiving the scan, first perform selection and search tests to confirm whether OCR is needed, avoiding duplicate processing of files with existing text layers.
- Retain the original scanned copy and save the new OCR-generated file as a backup. If any issues arise, you can return to the original to reprocess.
- Develop the habit of checking content you are about to cite or submit: compare numbers, proper terms, tables, and formulas item by item. OCR may have errors; please manually verify important content.
❓ Frequently Asked Questions (FAQ)
1. Can a scanned PDF be directly translated, and is OCR still needed first?
OmniDoc supports directly uploading scanned PDFs for translation, so you don't need to perform OCR first. But if your goal is to select, copy, or search the original text, you need to use OCR to add text layers to the file.
2. Is it normal for files to get larger after OCR?
Normal. OCR adds text information above the page image, and the file size usually increases. As long as the content is complete and the text is selected, this is the expected change.
3. Can photos taken with a phone be used for OCR?
Yes, but the shooting quality will directly affect recognition performance. It is recommended to use even lighting and aim the photo at the paper surface to avoid shadows and reflections; When photos are blurry, the recognition results tend to be more inaccurate.
4. Can OCR recognize handwritten characters?
Handwritten handwriting generally performs less reliably than printed fonts, and errors increase significantly when handwriting is messy. For important handwritten content, it is recommended to manually verify every word and avoid directly quoting the recognition results.
📝 Summary
PDFs cannot select text mostly because the page is just an image. First, use two tests—select and search—to confirm, then run OCR on the scanned page to add text layers, which can solve most problems. After recognition, you still need to check numbers and proper nouns to ensure the content is accurate. This is the complete process for OCR recognition methods where PDF cannot select text.


