TiloBox
Back to directory
OCRmyPDF project preview

OCRmyPDF

Adds an OCR text layer to scanned PDF files, making them searchable and accessible.

LicenseMPL-2.0
GitHub stars15.5k
Last commit1 weeks ago
Tags6 topics
PdfDocument ProcessingOcrTesseractSearchable PdfPython
Overview

Why consider OCRmyPDF?

OCRmyPDF analyzes scanned PDF documents, performs optical character recognition (OCR) using Tesseract, and adds a searchable text layer while preserving original image quality.

Guided learning

Learn OCRmyPDF by building

Practical setup notes, real use cases, and copy-ready examples in one focused guide.

1 min read 3 sections
In this guide3 sections

Overview of OCRmyPDF

OCRmyPDF transforms non-searchable scanned PDFs into fully searchable, accessible documents. Built in Python on top of Tesseract OCR, Ghostscript, and unpaper, it deskews pages, cleans scan artifacts, and inserts a transparent text layer over the original images.

Installing OCRmyPDF

Install via pip or package managers:

bash
1pip install ocrmypdf
2# or on macOS:
3brew install ocrmypdf

Running OCR on Scanned Documents

Process a scanned file and produce a searchable PDF/A:

bash
1ocrmypdf --deskew --clean input_scan.pdf searchable_output.pdf

Specify multi-language recognition:

bash
1ocrmypdf -l eng+fra input.pdf output.pdf

OCRmyPDF is distributed under the Mozilla Public License Version 2.0 (MPL-2.0).

Related tools

More options with a similar category or technology profile.

OCRmyPDF FAQs

OCRmyPDF is listed as a Developer Tools tool on TiloBox. Review the overview, features, and official documentation on this page to decide whether it solves your specific workflow.

Start with the project's GitHub repository and official website for supported installation and deployment instructions. Test the setup with representative data or a small project before rolling it out more widely.

OCRmyPDF is listed under the MPL-2.0 license. Read the complete license text and the project's notices before using, modifying, or distributing the software.

Production readiness depends on your requirements. Review maintenance activity, security practices, documentation, backup and upgrade procedures, and compatibility with your stack; then validate it in a non-production environment.

OCRmyPDF is listed as an alternative to Readiris. Compare the core workflow, deployment model, integrations, and licensing against your must-have requirements before switching.