New Tool Radar

AI PDF

How to Make a Searchable PDF from a Scan with Tesseract

Turn a scanned PDF into a searchable PDF with Tesseract so the text can be selected, searched and copied.

Schematic illustration of making a searchable PDF: check the Tesseract version, run it with PDF output, and test that the text selects.

Tesseract can write a searchable PDF in one command: it lays the recognised text invisibly over the scan image, so the file looks the same but becomes searchable. The Tesseract documentation lists searchable PDF as one of its built-in output formats. This guide runs it on one scanned page.

Prerequisites

Tesseract 5.5 installed, a scanned PDF or image, and a copy of the file to work on. Check the version with tesseract –version.

Steps

1. Check the Tesseract version

Run tesseract –version in a terminal. Expected result: the version prints as 5.5.x with Leptonica.

2. Run Tesseract with PDF output

Run tesseract scan.png output pdf for an image, or render the PDF pages to images first. Expected result: a file named output.pdf is created.

3. Test that the text is selectable

Open output.pdf and drag across a word on the page. Expected result: the word highlights, proving the text layer is present.

4. Search for a word in the PDF

Use Find in the PDF reader for a word from the page. Expected result: the search returns a hit on the right page.

Practice check: fictional one-page scan of a letter, word harvest

The table below is fictional practice material. It lists the four checks for the searchable PDF.

Check Expected result
Version printed 5.5.x with Leptonica
Output file created output.pdf exists
Word selects harvest highlights
Find returns a hit 1 hit on page 1

Expected result. the searchable PDF is created, the word harvest highlights when selected, and Find returns 1 hit on page 1.

Limits

  • A searchable PDF is only as good as the OCR behind it; a wrong word in the layer will be found by search and copied as if it were right.
  • UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.

Sources

  • Tesseract OCR Documentation, output formats – Tesseract supports plain text, searchable PDF, hOCR, TSV, ALTO and PAGE output; –psm sets the page segmentation mode. Checked 2026-11-29.
  • Tesseract OCR – Version 5.5.3 with Leptonica; searchable PDF output and TSV word confidence are built in. Checked 2026-11-29.
See all