New Tool Radar

AI PDF

How to Check OCR Text Under Highlighter on a Scanned Page

Check whether highlighted text on a scanned page survives OCR or whether the marker hides the words.

Schematic illustration of a highlighted text check: run OCR, find the four highlighted lines, and read the missing line from the image.

Highlighter ink darkens the background behind the words, and on a scan the contrast between ink and marker can collapse, so OCR drops the highlighted words entirely. The check is to compare the highlighted lines with the rest of the page. This guide checks four highlighted lines on one page.

Prerequisites

A scanned page with highlighted lines and an OCR tool. A colour scan keeps the highlight visible; a greyscale scan can hide it.

Steps

1. Run OCR on the page

Run OCR on the page and save the text. Expected result: the page text becomes selectable.

2. Find the four highlighted lines

Find the highlighted lines in the OCR text. Expected result: three of the four lines are present and one is missing.

3. Read the missing line from the image

Look at the missing line on the scan image. Expected result: the line reads clearly on the image despite the highlighter.

4. Record which lines OCR lost

Record the highlighted lines OCR dropped. Expected result: a note that says one of the four highlighted lines was lost.

Practice check: fictional scanned study notes, four highlighted lines

The table below is fictional practice material. It lists the four highlighted lines and whether OCR kept them.

Highlighted line In OCR text
Line 2 Kept
Line 5 Kept
Line 8 Missing
Line 11 Kept

Expected result. three of the four highlighted lines survive OCR and one, line 8, is missing from the OCR text.

Limits

  • A yellow highlighter on a colour scan usually survives OCR, but a dark marker can hide the words completely; check highlighted lines by eye when they matter.
  • UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.

Sources

  • Adobe Acrobat, Extract key data from scanned PDFs with OCR – Try to select a word first; OCR adds text you can search, select, copy and extract; tables can flatten, so compare totals with the original page. Checked 2026-11-29.
  • OCRmyPDF Cookbook – –sidecar writes OCR text to a companion file; –output-type pdfa/pdf picks the output; –optimize shrinks the file; –mode strip removes the text layer. Checked 2026-11-29.
See all