ocrmypdf/OCRmyPDF
OCRmyPDF adds an OCR text layer to scanned PDF files, allowing them to be searched observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 11.5
- age_days: 4639
- days_rel: 29
- days_push: 11
- n_releases_24m: 29
Adoption not part of the score
34589 stars · 2395 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
OCRmyPDF is a Python command-line tool that adds an OCR text layer to scanned PDF files using Tesseract, making them searchable and copy-pasteable. It produces validated PDF/A output with image preprocessing options like deskew, rotation correction, and optimization across multiple CPU cores.
Use cases
- make scanned pdfs searchable
- add ocr text layer to pdf
- convert scanned documents to searchable pdf/a
- deskew and clean crooked pdf scans
- batch ocr thousands of pages
- ocr pdfs in multiple languages
- extract text from scanned pdfs
When to choose
- you need a scriptable, battle-tested CLI for OCRing PDFs at scale
- you want PDF/A output with lossless text-layer insertion
- you need multilingual OCR with 100+ Tesseract languages
- you want image preprocessing like deskew and rotation fixes built in
When to avoid
- you need a GUI-based OCR workflow
- you want to OCR non-PDF documents like Word or plain images without conversion
- you need handwriting recognition, which Tesseract handles poorly
Facets
cli-tool · maturity stable
ocr pdf image-processing cli pdf files developer-tools windows python cli cross-platform tesseract pdfa scanned-documents searchable-pdf deskew batch-processing command-line linux macos docker
3 sources
- readme: https://github.com/ocrmypdf/OCRmyPDF · fetched 2026-08-28 · 33a3280a168f
- homepage: http://ocrmypdf.readthedocs.io/ · fetched 2026-08-29 · 53d7a424306c
- registry_pypi: https://pypi.org/pypi/ocrmypdf/json · fetched 2026-08-29 · 19142297622b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ocrmypdf/OCRmyPDF | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="ocrmypdf/OCRmyPDF")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem