PDF Conversion Issues

How to Improve PDF OCR Recognition for Small or Highlighted Text

Algirdas JasaitisAlgirdas Jasaitis Nov 3, 2026 869 views

Question details

The user needs to improve OCR text recognition in PDF software, as the engine is failing to detect text that is highlighted, small, or placed inside colored boxes.

How to Improve OCR Recognition for Small or Highlighted Text in PDFs
Product
PDF
Device & OS
not provided
Scenario
Attempting to extract text or make a scanned PDF document searchable when it contains manual highlights, small fonts, or colored background boxes.
Observed behavior
The OCR engine successfully processes clear text but completely misses or garbles text covered by highlighters or text that is too small within colored boxes, despite it being visible to the naked eye.
Before you start

Ensure your source document is scanned at a high resolution (at least 300 DPI) to capture small details clearly, and verify that the language settings in your OCR software match the document's language.

Solution 1Recommended

Optimize Document Contrast and Remove Highlights Before Scanning

Modifying the physical or digital document to increase contrast is the most effective way to help OCR engines recognize text under highlights or in colored boxes.

OCR technology relies heavily on the contrast between the text characters and the background. Highlighters reduce this contrast, making the text blend into the background from the scanner's perspective. Removing these visual obstructions yields the best results.

1
Obtain a clean original document

If possible, locate an unannotated version of the document without manual marker highlights or colored backgrounds.

2
Adjust physical scanner settings

Scan the document in grayscale or black-and-white mode rather than color. This forces the scanner to drop lighter highlight colors and maximizes the contrast of the black text.

3
Remove digital highlights

If the document is already a PDF with digital highlighting annotations, use your PDF editor's comment or annotation tools to delete the highlights before running the OCR process.

4
Run OCR on the optimized file

Open the newly scanned or cleaned PDF in your OCR software and run the text recognition tool again.

Best Practices for Small Text: For text that is exceptionally small, scanning at 600 DPI can provide the OCR engine with enough pixel data to accurately identify the characters.
Powerful OCR Alternative

Extract Text Accurately with WPS PDF OCR

WPS Office features an advanced, AI-driven OCR engine designed to accurately recognize and extract text from complex PDFs, including those with small fonts or shaded backgrounds. It offers an intuitive interface to handle your scanning and text extraction tasks effortlessly.

  1. 1. Open the PDF in WPS Office: Launch WPS Office and open your scanned PDF document.
  2. 2. Access the OCR Tool: Navigate to the 'Tools' tab on the top ribbon and click on the 'OCR' button.
  3. 3. Select the extraction area: Choose whether you want to extract text from the current page, the entire document, or a specific highlighted area by dragging a selection box.
  4. 4. Choose output format: Select your desired output format, such as extracting to plain text or converting directly to an editable Word document.
  5. 5. Confirm and extract: Click 'Extract Text' and review the accurately recognized text, which you can now easily edit or copy.
Highly accurate OCR for scanned PDFs and complex imagesMaintains original document formatting and layout during extractionSeamlessly converts recognized text into editable Word, Excel, or standard PDF formatsFully compatible with Microsoft Office formats for easy sharing
microsoft office alternative - wps office

Frequently Asked Questions

Why does OCR software fail to read highlighted text?

OCR relies on a stark contrast between text and its background to identify character shapes. Highlighters, especially darker colors, reduce this contrast, causing the text to blend into the background from the software's perspective, resulting in missed or garbled text.

Can OCR accurately recognize text inside colored boxes?

Yes, modern OCR tools can recognize text in colored boxes, provided there is enough contrast (e.g., white text on a dark blue box) and the text is not too small. Adjusting the image contrast before processing can improve accuracy.

Does increasing the scan DPI help with small text recognition?

Absolutely. Scanning documents at a low DPI (under 300) causes small text to become pixelated. Increasing the resolution to 300 or 600 DPI provides the OCR engine with clearer, more defined character shapes, drastically improving recognition rates for small fonts.

How can I remove physical highlights from a document before scanning?

If you cannot obtain a clean original, you can try photocopying the document in grayscale or black-and-white mode with the contrast turned up. This often causes lighter highlight colors (like yellow or light pink) to disappear, leaving only the dark text for the OCR scanner.