Description
OCRmyPDF adds an OCR text layer to scanned PDF files, so that they can be searched or copied from. It is a command-line tool, and it generates a searchable PDF/A file from a regular PDF, which is a format intended for long-term storage. The OCR text is placed accurately beneath the image to make copying work properly, and the exact resolution of the embedded images is kept. Where it can, it adds the OCR information without changing the rest of the document, and it optimises PDF images, often producing a file smaller than the input. If requested, it deskews or cleans the image before recognising the text. It validates the input and output files, spreads the work across all available CPU cores, and uses the Tesseract engine to recognise more than 100 languages. The author says it is designed to scale to files with thousands of pages and to keep private data private. The installation table lists commands for Debian and Ubuntu, Fedora, macOS through Homebrew, MacPorts and nix, FreeBSD, and Windows Subsystem for Linux, and Docker images are available for x64 and ARM. It suits anyone with a folder of scanned documents who needs them searchable.…
Highlights
- Adds a searchable text layer to scanned PDFs
- Produces PDF/A files for long-term storage
- Recognises more than 100 languages with Tesseract
- Uses all CPU cores and handles long files
Ratings & Reviews
No ratings yet
Be the first to rate OCRmyPDF.
People also visit
OCRmyPDF FAQ
What does OCRmyPDF do?
It adds an OCR text layer to scanned PDFs, so the text can be searched and copied, and it writes PDF/A output.
How do I install it?
Use your package manager, such as apt install ocrmypdf on Debian and Ubuntu, dnf on Fedora or brew on macOS. Docker images are also available.
Which languages does it read?
More than 100, through the Tesseract OCR engine.
Will it change my images?
The project says it keeps the exact resolution of the embedded images, and it can optimise PDF images to shrink the file.
Which systems are supported?
Linux, Windows, macOS and FreeBSD, with Windows through the Windows Subsystem for Linux.
What are the best OCRmyPDF alternatives?
Popular alternatives to OCRmyPDF include Pdf2pdfocr, PDFify and Obsidian OCR. See all OCRmyPDF alternatives


