How to Make a Scanned PDF Searchable (and Pick the Right OCR Language)
Turn a scanned PDF into one you can search and copy from. How to tell if you need OCR, which of the 14 languages to choose, and the mistakes that cause garbled text.
You scan a contract, open the PDF, press Ctrl+F and nothing is found. You try to copy one paragraph into an email and the cursor will not select any text. The file looks like a document, but your computer sees only a picture of each page. Optical character recognition, or OCR, fixes this by reading the letters in those pictures and adding them back to the PDF as text. This guide explains how to check whether you need it, how to run OCR PDF, and above all how to choose the language, because that one setting decides whether the result is useful or full of nonsense.
How to tell if your PDF needs OCR
Open the file in any PDF reader and try three things: drag the cursor over a line of text, press Ctrl+F (Cmd+F on a Mac) and search for a word you can see on the page, and look at whether the reader highlights whole lines or the whole page as a single block. If you cannot select a single word, or search finds nothing, the pages are images. Scanners, phone scanning apps and old digital archives often produce files like this.
A file that already has text does not need OCR. The tool skips any page that already has a text layer and reads only the pages that are pictures, so a PDF that mixes typed and scanned pages is handled page by page.
What OCR PDF does
You upload the PDF to our server, which processes it with OCRmyPDF, a program built on the Tesseract recognition engine. Before reading, it straightens pages that are slightly crooked and cleans up the page image. It then adds the recognised text to the PDF as an invisible layer behind each page picture. The page looks the same as before, but search and copy now work. The output is still a PDF, not an editable Word file, and it is named after your original with _ocr added.
Choosing the right language
This is the step people skip. The recogniser matches shapes against the alphabet and vocabulary of one language, so it needs to know which one to expect. OCR PDF offers 14 languages:
- English (the default)
- Spanish, French, German, Italian, Portuguese and Turkish
- Russian
- Arabic and Hindi
- Chinese (Simplified) and Chinese (Traditional)
- Japanese and Korean
Two rules cover most cases. First, pick the language the text is written in, not the language you speak or the language of the interface. Second, only one language is read per run. A French contract with a few English company names should be run as French. A document that is half one language and half another cannot be done in a single pass, so choose the language of the part you most need to search.
Chinese needs an extra decision: Simplified and Traditional are separate choices. If you pick the wrong one, many characters will not match. Look at a sample page. If you are unsure, run a short extract of the document with each option and compare.
Step by step
- Open OCR PDF and upload your scanned PDF. Files can be up to 100 MB.
- Under Document Language, select the language of the text. Leave English only if the document is in English.
- Start the process and wait. Reading text takes real computing time, so a long scan takes a while, and if the server is busy you may need to try again.
- Download the _ocr copy and open it in your PDF reader.
- Test it: search for a word you can see on page one and on a page near the end, and copy a sentence into a text editor.
Worked example
This is an illustration, not a measured result. Imagine a 12-page Spanish rental agreement scanned on an office scanner. You upload it and leave the language on English because it is the first option. The downloaded file searches for "arrendatario" and finds nothing, and copied text comes out as strings such as "arrcndatar1o" with accents missing. You run the original again with Spanish selected. This time search finds the word on the pages where it appears, and accented letters copy correctly. You still read the amounts and dates on the page itself, because a number such as 0 can be recognised as the letter O.
If the agreement is a big file, you can first shrink it with Compress PDF after the OCR step, or split out the pages you need with Split PDF.
Common mistakes
- Leaving the language on English. It is the default, and it gives poor results on any other language. Check the selection every time.
- Trusting the output without checking. OCR is an aid, not a guarantee. Handwriting, very small type, decorative fonts, tables and photographs taken at an angle produce mistakes. Verify any name, number or date that matters.
- Uploading a picture instead of a PDF. OCR PDF takes PDF files only. For a single JPG or PNG use Image to Text, or first turn pictures into a PDF with Image to PDF and then run OCR.
- Starting from a poor scan. A faded, tilted or low-resolution scan limits what any reader can recognise. Rescan at a higher resolution if you can.
- Running a damaged file. If the PDF will not open normally, try Repair PDF first.
- Expecting a Word document. If you need to edit the text, copy it out of the searchable PDF and check it, or use PDF to HTML on a file that already has text.
What happens to your file
Your PDF is uploaded over an encrypted connection to our server. The OCR step saves it in a temporary folder only while it works, and that folder is deleted when the request ends. We do not keep the file. The site does load Google Analytics and advertising scripts, which receive page visits and not your documents. If a document is highly confidential, consider whether uploading it is appropriate at all.
Common questions
Does OCR change how the pages look?
The tool straightens slightly tilted pages and cleans the page image before reading, so a page can look a little different from the scan. Compare a page or two, especially if the original was already poor.
Can it read several languages in one file?
Not in one run. Pick the main language. Words in another language that use the same letters are often read acceptably, but other scripts are not.
Is there a size limit?
Uploads can be up to 100 MB.
Why does it say the PDF already contains text?
The pages already have a text layer, so there is nothing to add. Test with Ctrl+F in your reader to confirm.
EZEPDFTOOLS Team
Editorial team
Written by the team that builds and maintains the EZEPDFTOOLS tools.
Start Using OCR PDF
Put this guide into practice immediately with our professional-grade OCR PDF tool.
Go to OCR PDF