# OCRmyPDF

Command\-line PDF OCR pipeline that adds searchable text, with configurable image processing and PDF/A output\.

ID: Q378 · Revision: 364

Type: software · License: MPL\-2\.0 core; documentation and tests CC\-BY\-SA\-4\.0, miscellaneous files MIT with exceptions; dependencies retain their licenses\.[^license][^install] · Status: active

Website: https://ocrmypdf.readthedocs.io/



OCRmyPDF adds searchable text to scanned PDF documents through a command\-line workflow\. It combines OCR with optional image preparation, optimization and archival\-format conversion\. It is suited to repeatable processing of existing files rather than acting as a scanner\-driver interface or a general visual PDF editor\.[^intro][^cookbook]

## Capabilities and substitutions

### Searchable PDF output — supported

Adds an OCR text layer; language data and input quality affect recognition\.[^intro][^cookbook]

Use case: Adding searchable text to existing scanned PDFs in repeatable local workflows · Platforms: Linux, macOS, Windows 64\-bit, Windows Subsystem for Linux, FreeBSD · Region: Version, build and integration requirements apply

### PDF/A generation — limited

v17 auto output can fall back to ordinary PDF; explicit archival requirements need the appropriate output mode\.[^advanced]

Use case: Adding searchable text to existing scanned PDFs in repeatable local workflows · Platforms: Linux, macOS, Windows 64\-bit, Windows Subsystem for Linux, FreeBSD · Region: Version, build and integration requirements apply

### Preserving accessibility structure — limited

Redo and force processing can discard tags; PDF/A fallback can also affect structure\.[^advanced]

Use case: Adding searchable text to existing scanned PDFs in repeatable local workflows · Platforms: Linux, macOS, Windows 64\-bit, Windows Subsystem for Linux, FreeBSD · Region: Version, build and integration requirements apply

### Signed PDF processing — limited

Refuses signed PDFs by default; overriding the protection invalidates signatures\.[^security]

Use case: Adding searchable text to existing scanned PDFs in repeatable local workflows · Platforms: Linux, macOS, Windows 64\-bit, Windows Subsystem for Linux, FreeBSD · Region: Version, build and integration requirements apply

### [Substitute for NAPS2](/naps2) — limited

Assessment: replaces the OCR\-of\-existing\-PDF portion of NAPS2 with a scriptable processing workflow; it does not replace scanner capture or a graphical page\-assembly interface\.[^intro][^cookbook][^naps]

Use case: Adding searchable text to existing scanned PDFs in repeatable local workflows · Platforms: Linux, macOS, Windows 64\-bit, Windows Subsystem for Linux, FreeBSD · Region: Version, build and integration requirements apply

## References

[^intro]: [OCRmyPDF documentation](<https://ocrmypdf.readthedocs.io/en/latest/>) — Purpose and command\-line workflow (vendor; retrieved 2026-10-07T14:17:13Z)

[^cookbook]: [OCRmyPDF cookbook](<https://ocrmypdf.readthedocs.io/en/latest/cookbook.html>) — Languages, sidecar omissions and image\-processing cautions (vendor; retrieved 2026-10-07T14:17:35Z)

[^advanced]: [Advanced features](<https://ocrmypdf.readthedocs.io/en/latest/advanced.html>) — v17 modes, tagged PDFs and PDF/A fallback behavior (vendor; retrieved 2026-10-07T14:19:59Z)

[^security]: [PDF security issues](<https://ocrmypdf.readthedocs.io/en/latest/pdfsecurity.html>) — Trust boundary, digital signatures and encryption (vendor; retrieved 2026-10-07T14:17:28Z)

[^install]: [Installation](<https://ocrmypdf.readthedocs.io/en/latest/installation.html>) — Native Windows, platforms and external dependencies (vendor; retrieved 2026-10-07T14:19:59Z)

[^license]: [Copyright and license](<https://ocrmypdf.readthedocs.io/en/latest/contributing.html#copyright-and-license>) — Core MPL\-2\.0 and ancillary file licenses (vendor; retrieved 2026-10-07T14:17:28Z)

[^deployment]: [Online deployments](<https://ocrmypdf.readthedocs.io/en/latest/cloud.html>) — Resource limits and unsafe public\-upload assumptions (vendor; retrieved 2026-10-07T14:18:03Z)

[^naps]: [NAPS2 OCR](<https://www.naps2.com/doc/ocr>) — OCR of imported PDF pages (vendor; retrieved 2026-10-07T14:17:35Z)

Source revision: https://substitutefor.net/entities/Q378?revision=364
