macOS
brew install ocrmypdflocal Homebrew formula metadata
sudo port install ocrmypdfMacPorts ports tree · textproc/ocrmypdf/Portfile · ソース: api.github.com
brew
ocrmypdf のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install ocrmypdflocal Homebrew formula metadata
sudo port install ocrmypdfMacPorts ports tree · textproc/ocrmypdf/Portfile · ソース: api.github.com
sudo apk add ocrmypdfAlpine Linux edge package indexes · ocrmypdf · ソース: dl-cdn.alpinelinux.org
sudo apt install ocrmypdfDebian stable package indexes · ocrmypdf · ソース: deb.debian.org
sudo dnf install ocrmypdfFedora Rawhide package metadata · ocrmypdf · ソース: dl.fedoraproject.org
nix profile install nixpkgs#ocrmypdfnixpkgs package indexes · ocrmypdf · ソース: raw.githubusercontent.com
sudo zypper install python311-ocrmypdfopenSUSE Tumbleweed package metadata · python311-ocrmypdf · ソース: download.opensuse.org
概要
Adds an OCR text layer to scanned PDF files
履歴
OCRmyPDF is a Python command-line application and library that adds an OCR text layer to scanned PDF files, making image-based documents searchable and copyable while preserving the original page images where possible.
The project’s documentation frames OCRmyPDF around an awkward document-processing gap: PDF is the normal container for scanned documents, but existing scanned PDFs are difficult to modify. OCRmyPDF automates the pipeline of rasterizing pages, running OCR, inserting an invisible text layer, and writing a validated PDF or PDF/A output.
PyPI release history shows OCRmyPDF 3.0 published on 2015-09-05 and 4.2.2 on 2016-08-31, already advertising searchable PDF/PDF-A generation and preservation of embedded image resolution. Later documentation describes a public API, plugin support, image optimization, language packs, Docker usage, and feature-specific release notes, showing its expansion from a practical CLI into a packaged document-processing toolkit.
OCRmyPDF’s adoption follows the shape of the scanned-document problem: Linux, macOS, and distribution packagers ship it because it wraps several hard-to-coordinate pieces into one reproducible CLI. The project is available through PyPI and package managers including Homebrew, Debian/Ubuntu, Fedora, MacPorts, Nix, Alpine, and openSUSE-family packages.
The project’s packaging notes thank downstream packagers and point to broad porting status, while the README badges and package metadata show attention to PyPI, Homebrew, Read the Docs, and Python-version compatibility. That packaging breadth is part of its appeal: users can install a single command rather than hand-assemble Tesseract, Ghostscript or pypdfium2, image preprocessing, PDF/A conversion, metadata handling, and validation steps.
The common workflow is `ocrmypdf input.pdf output.pdf`, with options for languages, page rotation, deskewing, cleaning, metadata, job parallelism, output type, PDF optimization, and redoing or skipping existing OCR. The README emphasizes searchable PDF/A output, accurate placement of OCR text below images, lossless insertion where possible, image optimization, input/output validation, Tesseract language support, and scaling to large PDFs.
The project is also used as a library or scripted tool in document-ingestion systems. Its public API and plugin documentation exist for callers that need OCRmyPDF behavior inside larger PDF processing flows rather than only from a shell.
OCRmyPDF is packaging glue with real teeth: it turns a fragile OCR/PDF toolchain into one command while still exposing dependency choices, language-data packaging, Docker images, plugin hooks, and PDF/A policy. It is a good package-nerd example of a Python CLI whose value is orchestrating native tools and file-format edge cases cleanly.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
ocrmypdf | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://ocrmypdf.readthedocs.io/en/latest/
インストールメタデータ
| パッケージキー | brew:ocrmypdf |
|---|---|
| バージョン | 17.8.0 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/ocrmypdf |
| ホームページ | https://ocrmypdf.readthedocs.io/en/latest/ |
| リポジトリ | https://github.com/ocrmypdf/OCRmyPDF |
| 上流ドキュメント | https://ocrmypdf.readthedocs.io/en/latest |
| ライセンス | MPL-2.0 |
| ソースアーカイブ | https://files.pythonhosted.org/packages/4b/c4/c44db9ff5282e7c73856f437434777745d18bb9404f431df70e786a6bcc7/ocrmypdf-17.8.0.tar.gz |
| 最終更新 | 2026-07-02T12:13:48Z |
| Pulse | updated |
| 依存関係 | cryptography, freetype, ghostscript, img2pdf, jbig2enc, libheif, libpng, pillow, pngquant, pybind11, pydantic, python@3.14, qpdf, tesseract, unpaper |
| ビルド依存関係 | cmake, pkgconf |
| macOS 提供ライブラリ | libffi, libxml2, libxslt |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ocrmypdf |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
ocrmypdf 16.7.0+dfsg1-3
add an OCR text layer to PDF files
https://github.com/jbarlow83/OCRmyPDF
sudo apt install ocrmypdfocrmypdf-doc 16.7.0+dfsg1-3
add an OCR text layer to PDF files - documentation
https://github.com/jbarlow83/OCRmyPDF
sudo apt install ocrmypdf-dococrmypdf
nix profile install nixpkgs#ocrmypdfocrmypdf 15.2.0+dfsg1-1
add an OCR text layer to PDF files
https://github.com/jbarlow83/OCRmyPDF
sudo apt install ocrmypdfocrmypdf-doc 15.2.0+dfsg1-1
add an OCR text layer to PDF files - documentation
https://github.com/jbarlow83/OCRmyPDF
sudo apt install ocrmypdf-dococrmypdf 16.11.1-r2
Add OCR text layer to scanned PDF files
https://github.com/ocrmypdf/OCRmyPDF
sudo apk add ocrmypdfocrmypdf-pyc 16.11.1-r2
Precompiled Python bytecode for ocrmypdf
https://github.com/ocrmypdf/OCRmyPDF
sudo apk add ocrmypdf-pycocrmypdf 16.12.0-3.fc45
Add an OCR text layer to scanned PDF files
https://github.com/ocrmypdf/OCRmyPDF
sudo dnf install ocrmypdfocrmypdf+watcher 16.12.0-3.fc45
Metapackage for ocrmypdf: watcher extras
https://github.com/ocrmypdf/OCRmyPDF
sudo dnf install ocrmypdf+watcherocrmypdf-doc 16.12.0-3.fc45
ocrmypdf documentation
https://github.com/ocrmypdf/OCRmyPDF
sudo dnf install ocrmypdf-docpython311-ocrmypdf 17.4.2-1.1
OCRmyPDF adds an OCR text layer to scanned PDF files
https://github.com/ocrmypdf/OCRmyPDF
sudo zypper install python311-ocrmypdfpython313-ocrmypdf 17.4.2-1.1
OCRmyPDF adds an OCR text layer to scanned PDF files
https://github.com/ocrmypdf/OCRmyPDF
sudo zypper install python313-ocrmypdfpython314-ocrmypdf 17.4.2-1.1
OCRmyPDF adds an OCR text layer to scanned PDF files
https://github.com/ocrmypdf/OCRmyPDF
sudo zypper install python314-ocrmypdfocrmypdf
sudo port install ocrmypdfソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.