macOS
brew install ocrmypdflocal Homebrew formula metadata
sudo port install ocrmypdfMacPorts ports tree · textproc/ocrmypdf/Portfile · 来源: api.github.com
安装
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来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.