OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched
About this project
OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched. It lives in retrieval and knowledge management, the layer that lets a model answer from your own documents instead of from training data alone.
On GitHub the repository is tagged image-processing, ocr, pdf, python and tesseract, which is a fair summary of what it covers. There is normally an ingestion pipeline, an embedding and vector index, and a query layer on top. Most of the engineering effort goes into chunking, ranking and keeping the index fresh as documents change.
It is written mainly in Python and released under MPL-2.0, a weak copyleft license — changes to the library itself must be shared, while your own code can stay private. It is actively maintained: the most recent commit landed on November 16, 2026.
To try it, clone the repository and follow its README; that file is the canonical install guide. There is also a project page at http://ocrmypdf.readthedocs.io/ for documentation or a hosted demo. Because it runs on your own infrastructure, budget time for environment setup: dependencies, model weights and configuration usually take longer than the first successful run.
Key facts as recorded on GitHub: 35,342 stars; 2,459 forks; primary language Python; license MPL-2.0; last commit on November 16, 2026; topics image-processing, ocr, pdf, python, tesseract.