An image-only scanned PDF has no searchable text. OCR can add an invisible text layer while retaining the scan image. Some scans already have OCR; inspect the existing text before processing. OCR alone does not provide correct tags or accessible reading order.
OCR Engine Comparison
| Engine | Type | Strengths | Best For |
|---|---|---|---|
| Tesseract 5 | Open source, local | 100+ languages, LSTM-based | Self-hosted batch pipelines |
| ABBYY FineReader | Commercial desktop | Layout retention, tables | Mixed-content business docs |
| Google Cloud Vision | Cloud API | Image text recognition; test your input | Cloud-integrated workflows; compare accuracy on representative inputs |
| Azure Document Intelligence | Cloud API | Form & receipt extraction | Structured data capture |
| Apple Live Text | OS-level, local | Included on supported Apple devices | Casual macOS/iOS use |
Pre-Processing and Engine Choice
Source clarity, resolution, layout, language and engine choice all affect recognition. Standard pre-processing steps:
- Deskew: rotate pages so text baselines are horizontal.
- Denoise carefully: filtering may reduce specks or artifacts but can also erase punctuation and character strokes. Compare recognition with the original.
- Try binarization where useful: thresholding can simplify backgrounds, but may remove faint text or meaningful color. Preserve the original and compare results.
- Despeckle and remove borders: drop scanner edges and dust.
- Use an appropriate image resolution and DPI setting for the OCR engine. Upsampling or changing a DPI label does not recover missing detail; compare recognition on representative pages.
Building a Searchable PDF
- For body text, about 300 DPI is a common starting point, not a universal requirement. Follow the engine’s input guidance and test small print; upsampling cannot recover source detail.
- Try deskewing, denoising or thresholding only where useful, preserving the original and comparing recognition quality.
- Configure languages according to the OCR engine and supported workflow. Some engines require language packs, while others detect languages; test mixed-language pages rather than assuming automatic coverage.
- Save as searchable PDF with aligned invisible text and the original page image. Content-stream order varies by implementation; inspect search and copied text rather than relying on an above/below layer description.
- Spot-check accuracy by searching for known words and copying paragraphs into a text editor.
- For archives, consider validated PDF/A-2u after OCR. It requires Unicode mapping for existing text, not OCR on image-only pages.
Common Failure Modes
- Wrong language: An incorrect language model can reduce recognition accuracy. Select the appropriate language packs.
- Two-column layouts read as one: use layout-aware OCR or split pages first.
- Handwriting: print-oriented OCR may perform poorly; evaluate an engine that supports handwriting and review the output.
- Tiny stamps and signatures: capture more source detail if possible; merely increasing a resolution setting cannot restore it. Leave unreadable material as an image and review rather than inventing recognized text.
When OCR Is Worth It — and When to Skip
OCR adds processing time and can introduce errors, so apply it deliberately:
- Worth it: scanned contracts you need to search, receipts and invoices feeding bookkeeping, archives that must be full-text indexed, or any document where someone will later Ctrl+F for a name or figure.
- Skip it: digitally exported pages with accurate text usually do not need OCR. Check selection, search and copied text on multiple pages; mixed documents and inaccurate OCR may still need selective processing.
- Quality first: a clear, straight scan generally helps recognition. Compare preprocessing results with the original: excessive thresholding can erase faint characters.
For archival masters, validate the chosen PDF/A profile separately. PDF/A-2u requires Unicode mapping for existing text; it does not require OCR or establish accessibility compliance.
Convert PDFs Back to Images
Export PDF pages as high-quality PNG or JPEG entirely in your browser.
PDF to Image →