ocrmypdf

Install command:
brew install ocrmypdf

Adds an OCR text layer to scanned PDF files

https://ocrmypdf.readthedocs.io/en/latest/

License: MPL-2.0

Development: Pull requests

Formula JSON API: /api/formula/ocrmypdf.json

Formula code: ocrmypdf.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
macOS on
Intel
sonoma
Linux ARM64
x86_64

Current versions:

stable 17.2.0

Depends on:

cryptography 46.0.5 Cryptographic recipes and primitives for Python
freetype 2.14.1 Software library to render fonts
ghostscript 10.06.0 Interpreter for PostScript and PDF
img2pdf 0.6.3 Convert images to PDF via direct JPEG inclusion
jbig2enc 0.30 JBIG2 encoder (for monochrome documents)
libheif 1.21.2 ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
libpng 1.6.55 Library for manipulating PNG images
pillow 12.1.1 Friendly PIL fork (Python Imaging Library)
pngquant 3.0.3 PNG image optimizing utility
pybind11 3.0.1 Seamless operability between C++11 and Python
pydantic 2.12.5 Data validation using Python type hints
python@3.14 3.14.3 Interpreted, interactive, object-oriented programming language
qpdf 12.3.2 Tools for and transforming and inspecting PDF files
tesseract 5.5.2 OCR (Optical Character Recognition) engine
unpaper 7.0.0 Post-processing for scanned/photocopied books

Depends on when building from source:

cmake 4.2.3 Cross-platform make
pkgconf 2.5.1 Package compiler and linker metadata toolkit

Analytics:

Installs (30 days)
ocrmypdf 5,371
ocrmypdf --HEAD 11
Installs on Request (30 days)
ocrmypdf 5,352
ocrmypdf --HEAD 11
Build Errors (30 days)
ocrmypdf 6
Installs (90 days)
ocrmypdf 13,523
ocrmypdf --HEAD 30
Installs on Request (90 days)
ocrmypdf 13,484
ocrmypdf --HEAD 30
Installs (365 days)
ocrmypdf 42,498
ocrmypdf --HEAD 85
Installs on Request (365 days)
ocrmypdf 42,112
ocrmypdf --HEAD 85