What is OCRmyPDF?
OCRmyPDF takes a scanned PDF, or a folder of images, and gives back the same pages with an invisible text layer placed under each word, so the file can be searched, copied from and indexed. The page images keep their original resolution, the default output is PDF/A (the archival flavour of PDF), and lossless image optimisation often leaves the result smaller than the input. Recognition comes from Tesseract, whose LSTM neural-network engine has language packs for more than 100 languages, and the pages are shared out across all CPU cores.
Version 17.0.0, released on 30 January 2026, brought a new text renderer, made Ghostscript optional and added an --ocr-engine switch. Version 17.14.0 used that switch in November to ship RapidOCR as a built-in alternative, running PaddleOCR's PP-OCR models on ONNX Runtime. Third-party plugins swap Tesseract for EasyOCR, PaddleOCR or Apple's Vision framework. It installs from apt, dnf, Homebrew, pip or Docker and needs Python 3.11 or newer and Tesseract 4.1.1 or newer.
The code is MPL-2.0, which permits use inside closed-source products but asks that changes to OCRmyPDF's own source be published; Ghostscript, where it is still used, is AGPLv3. The project dates from December 2013 and has about 35,400 stars. James Barlow has written most of it (1,949 commits against 213 for the next contributor). The latest release is v17.14.2, from 16 November 2026.
Is OCRmyPDF worth it?
OCRmyPDF does one job, turning scanned PDFs into searchable ones, and after nearly 13 years it does that job with very few surprises. Most of its value is the work it does around Tesseract: it splits the PDF, straightens and rotates the pages, runs OCR on every core, lines the text up under the image and reassembles a valid PDF/A without resampling the pictures. On Hacker News that plumbing is what draws the praise; one developer who had wired raw Tesseract into his own archive replaced the lot with OCRmyPDF because it did better.
Next to the vision-language OCR models we review, it is the plain option. PaddleOCR-VL, DeepSeek-OCR 2 and Mistral OCR, and pipelines such as Marker, Docling and MinerU, work out layout, tables and reading order and hand back Markdown a language model can use. Tesseract hands back words and their positions. In return OCRmyPDF needs no GPU, sends nothing off the machine and costs nothing per page. It also cannot invent a sentence that was never on the page, which a generative model occasionally will; its mistakes look like mistakes. Users building retrieval pipelines describe running both: OCRmyPDF with --skip-text to give every file a text layer cheaply, and a model only for the documents where structure matters.
Tesseract's limits are OCRmyPDF's limits, and the docs list them without spin. It cannot read handwriting at all, it may read a two-column page straight across, its output has no paragraphs or headings, and its accuracy may trail commercial engines. Users fill in the detail. A 2022 Hacker News thread put clean-scan accuracy at around 97 to 98% for little effort, with Greek and Hebrew much worse. In September 2026 a Paperless-ngx user called it close to useless for German letters, next to the ABBYY software that came with an old ScanSnap scanner, and gridlines and multi-column layouts are a recurring complaint about table-heavy scans.
The new RapidOCR engine is aimed at the number problem. The docs say it often reads digits, codes and short table cells better than Tesseract, at roughly four times the CPU time per page and about 1.2GB of memory per worker. The v17.14.2 notes describe one scanned assay table going from 163 to 222 of its 229 "<" signs read correctly after a resizing fix. Maintenance is busy but concentrated in one person: releases land every few weeks and 63 issues are open. The docs also carry two security warnings. OCRmyPDF is not hardened against malicious PDFs, so files from strangers belong in a container, and the web front end in the Docker image is a demo with no protections that should never face the internet.
Our take: OCRmyPDF should be the first pass on every scanned page, with a paid or GPU-hungry model reserved for the pages it visibly fumbles. It is the reason Paperless-ngx can index a household's paperwork on an old i3 box with 16GB of RAM, which is how one r/selfhosted user runs it.
Where it earns its place
A home-lab owner running Paperless-ngx on a small, GPU-less server
Make every scanned bill and letter searchable without a cloud account
Paperless-ngx calls OCRmyPDF on each document it takes in; install the Tesseract language packs for your languages and name them in its settings. It costs nothing and runs on CPU, but expect to correct the odd misread total, and keep handwritten notes out of the plan.
A data engineer feeding a mixed PDF archive into a RAG index
Give every PDF a text layer before chunking, without paying a model to re-read born-digital files
Run ocrmypdf --skip-text --jobs N so pages that already carry text are left alone, then extract with pdftotext, since the --sidecar file covers only the pages it OCRed. Send only table-heavy or layout-heavy documents on to Docling, Marker or a vision model, keeping GPU time for the pages that need it.
A records clerk at a small law firm digitising boxes of typed case files
Produce searchable, archival PDFs without files leaving the office
ocrmypdf --deskew --rotate-pages --output-type pdfa on a workstation handles each box in a batch. The docs note PDF/A files can be signed but not encrypted and are often larger, so storage and encryption are planned at the archive level.
Before you commit
- Setup
- One package-manager command on Debian, Ubuntu, Fedora, macOS, FreeBSD or WSL (apt install ocrmypdf, brew install ocrmypdf), or pip, or Docker images for x64 and ARM; add Tesseract language packs and the first searchable PDF takes minutes. Needs Python 3.11+ and Tesseract 4.1.1+.
- Integrations
- Command line and Python API; a plugin interface for OCR engines (EasyOCR, PaddleOCR and Apple Vision plugins exist); built-in RapidOCR through the rapidocr extra, which adds about 340MB and is left out of the Docker images; Paperless-ngx uses it for OCR.
- Data and privacy
- Runs entirely on your machine and uploads nothing. RapidOCR downloads extra language and page-orientation models on first use unless you fetch them in advance. Code is MPL-2.0; Ghostscript, if used, is AGPLv3.
- Cost at scale
- Free software; the cost is CPU time. Work spreads across all cores. RapidOCR needs about four times Tesseract's CPU time per page and about 1.2GB of memory per worker, so lower --jobs on memory-tight machines.
- Limits
- No handwriting; may join text across two columns; no paragraph or heading structure; not secure against malware-bearing PDFs; the Docker web front end is a demo not meant for the public internet; RapidOCR misreads upside-down lines on upright pages.
What’s good
- Free, CPU-only and fully local, with no per-page cost
- Text layer goes under the original images; PDF/A by default
- Deskew, rotation, optimisation and multi-core in one command
- Frequent releases; swappable engines, now including RapidOCR
What’s not
- Tesseract cannot read handwriting at all
- No layout model: tables and columns often come out scrambled
- Users report weak results on Greek, Hebrew and German letters
- Not hardened against malicious PDFs; the web demo is unsafe to expose
Best for
Self-hosters, archivists and pipeline builders who need thousands of scanned pages searchable on ordinary CPUs without sending them anywhere.
OCRmyPDF alternatives
Where it fits in the AI stack
OCRmyPDF: common questions
- Is OCRmyPDF worth it?
- OCRmyPDF is the dependable free way to make a cabinet of scans searchable on an ordinary CPU, provided nobody asks Tesseract to read handwriting or a busy table. We rate it 4.4 out of 5.
- How much does OCRmyPDF cost?
- Free under MPL-2.0; Ghostscript, an optional dependency since v17, is AGPLv3.
- What are the downsides of OCRmyPDF?
- Tesseract cannot read handwriting at all; no layout model: tables and columns often come out scrambled; users report weak results on Greek, Hebrew and German letters; not hardened against malicious PDFs; the web demo is unsafe to expose.
- Who is OCRmyPDF best for?
- Self-hosters, archivists and pipeline builders who need thousands of scanned pages searchable on ordinary CPUs without sending them anywhere.
- How much does OCRmyPDF cost for a team or in production?
- Free software; the cost is CPU time. Work spreads across all cores. RapidOCR needs about four times Tesseract's CPU time per page and about 1.2GB of memory per worker, so lower --jobs on memory-tight machines.
- Is OCRmyPDF safe for company data?
- Runs entirely on your machine and uploads nothing. RapidOCR downloads extra language and page-orientation models on first use unless you fetch them in advance. Code is MPL-2.0; Ghostscript, if used, is AGPLv3.
- What are the best OCRmyPDF alternatives?
- The closest alternatives we have reviewed are Docling, Marker, MinerU, Stirling PDF and Ocrs.
Answers checked Nov 29, 2026.