# OCRmyPDF

> Adds a searchable OCR text layer to scanned PDFs

Source: https://talira.ai/catalog/ocrmypdf-d59rtgz9
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool, Library
- Categories: [documents / pdf / ocr](https://talira.ai/categories/documents/pdf/ocr), [developer tools / cli](https://talira.ai/categories/developer-tools/cli)
- Platforms: linux, macos, windows, docker, cli
- Licence: MPL-2.0
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Plugins: yes
- Creator: Julien Pfefferkorn (original author) and James R. Barlow (maintainer), per the README copyright lines

OCRmyPDF is a command-line program and Python library that adds an invisible OCR text layer under the images of scanned PDFs, so they can be searched and copy-pasted, and outputs PDF/A by default. It uses [Tesseract](https://talira.ai/catalog/tesseract-n5wxbj3p.md) (100+ languages) for recognition, keeps the original image resolution, can deskew, rotate and clean pages, optimizes images (often producing smaller files), and spreads work across all CPU cores. Its own code is MPL-2.0, but it relies on external programs: Tesseract (Apache-2.0) and, for rasterizing, either [pypdfium2](https://talira.ai/catalog/pypdfium2-2qb89jmf.md) or [Ghostscript](https://talira.ai/catalog/ghostscript-j6fzqd7w.md) (AGPL-3.0); since version 17 Ghostscript is optional but still needed for some PDF/A conversions.

## Links

- Website: https://ocrmypdf.readthedocs.io/
- GitHub: https://github.com/ocrmypdf/OCRmyPDF
- Docs: https://ocrmypdf.readthedocs.io/

## Ways to install

### App stores

- [Snap](https://talira.ai/catalog/snap-3jtdmjpc.md): <https://snapcraft.io/ocrmypdf>[^1]

## Problems it solves

- I scanned 10 years of paperwork and can't search any of it
- ctrl+F finds nothing in the PDFs that come off our office scanner
- make scanned contracts copy-pasteable without retyping them
- the scanner saves pages crooked and sideways, straighten them automatically
- free OCR for PDFs that runs offline on a Linux box
- turn scanned documents into PDF/A for long-term archiving
- watch a folder and make every new scan searchable automatically
- Adobe's OCR makes the files huge and blurry; I want the images untouched
- OCR French and German documents together in one pass
- add a text layer to a scanned PDF before we feed it to our text extraction step
- batch process thousands of scanned pages using all CPU cores

## Features

- searchable PDF/A output from scanned PDFs
- OCR text placed under the image for accurate copy/paste
- keeps the original resolution of embedded images
- deskew, rotate and clean pages
- image optimization (pngquant, JBIG2)
- multi-core processing
- Tesseract OCR in 100+ languages; RapidOCR alternative engine
- plugin interface to replace or extend OCR engines
- Docker images (x64 and ARM)

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.76 out of 1.
Signals: maintenance 1.00, adoption 0.91, momentum 0.71, community 0.85, backing 0.20, extensibility 0.40.

- last commit 10 days ago
- 181 commits in the last 90 days
- latest release v17.14.1 14 days ago
- 35.3k GitHub stars
- 133 contributors
- accepts sponsorship (Open Collective)
- created by Julien Pfefferkorn (original author) and James R. Barlow (maintainer), per the README copyright lines
- has a plugin system

## Related

- Works with [Tesseract](https://talira.ai/catalog/tesseract-n5wxbj3p.md)

## Alternatives

- [Stirling-PDF](https://talira.ai/catalog/stirling-pdf-3w4rw5w9.md): Your PDFs. Your servers.
- [PyMuPDF](https://talira.ai/catalog/pymupdf-xw9pb5xf.md): A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.
- [Docling](https://talira.ai/catalog/docling-7gb20naa.md): Get your documents ready for gen AI
- [Tesseract](https://talira.ai/catalog/tesseract-n5wxbj3p.md): Tesseract Open Source OCR Engine
- [Amazon Textract](https://talira.ai/catalog/amazon-textract-bh9j0k66.md): Automatically extract printed text, handwriting, layout elements, and data from any document
- [EasyOCR](https://talira.ai/catalog/easyocr-hd0rqfgh.md): Ready-to-use OCR with 80+ supported languages and all popular writing scripts

## Sources

[^1]: https://github.com/ocrmypdf/OCRmyPDF/blob/main/README.md (checked 20 Nov 2026)
