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
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 17.14.1

Depends on:

cryptography 50.0.2 Cryptographic recipes and primitives for Python
freetype 2.15.0 Software library to render fonts
ghostscript 10.08.0 Interpreter for PostScript and PDF
img2pdf 0.6.3 Convert images to PDF via direct JPEG inclusion
jbig2enc 0.32 JBIG2 encoder (for monochrome documents)
libheif 1.23.7 ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
libpng 1.6.59 Library for manipulating PNG images
pillow 13.0.0 Friendly PIL fork (Python Imaging Library)
pngquant 3.0.3 PNG image optimizing utility
pybind11 3.1.0 Seamless operability between C++11 and Python
pydantic 2.14.3 Data validation using Python type hints
python@3.15 3.15.2 Interpreted, interactive, object-oriented programming language
qpdf 12.4.2 Tools for and transforming and inspecting PDF files
rpds-py 2026.9.1 Python bindings to Rust's persistent data structures
tesseract 5.5.4 OCR (Optical Character Recognition) engine
unpaper 7.0.0 Post-processing for scanned/photocopied books

Depends on when building from source:

cmake 4.5.0 Cross-platform make
pkgconf 3.0.10 Package compiler and linker metadata toolkit

Uses from macOS: libffi, libxml2 (since macOS Ventura), libxslt

Binaries: ocrmypdf

GitHub Packages downloads:

Last 30 days33,429
Downloads850,921
Analytics install events (30 days)4,387
Downloads / install events (30 days)7.6×

Source: GitHub Packages, fetched 2026-11-15T00:55:13Z. Analytics dates: 2026-10-16 to 2026-11-15. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs4,38112,56963,156
Installs (--HEAD)625123
Installs on Request4,37912,56963,066
Installs on Request (--HEAD)625123
Build Errors1