# PyMuPDF

Python document\-processing library built on MuPDF for rendering, extraction and PDF manipulation\.

ID: Q572 · Revision: 620

Type: software · License: GNU AGPL OR commercial license[^about] · Status: active

Website: https://pymupdf.readthedocs.io/en/latest/



PyMuPDF is a Python library built on MuPDF for extracting, analyzing, rendering and manipulating documents\. Its PDF functions include page operations, annotations and text handling\. The standard library is distinct from the optional PyMuPDF Pro and PyMuPDF4LLM products\.[^about]

## Capabilities and substitutions

### Document rendering and extraction — supported

Combines MuPDF rendering with Python access to document contents\.[^about]

Use case: Extract document content, render pages and manipulate PDFs in Python · Platforms: Windows, macOS, Linux, Python · Region: Version, build and integration requirements apply

### OCR — limited

Tesseract must be installed separately; recognition produces text without original font styling\.[^ocr]

Use case: Extract document content, render pages and manipulate PDFs in Python · Platforms: Windows, macOS, Linux, Python · Region: Version, build and integration requirements apply

### Multithreaded execution — unsupported

The documentation warns that concurrent thread use can malfunction or crash Python\.[^parallel]

Use case: Extract document content, render pages and manipulate PDFs in Python · Platforms: Windows, macOS, Linux, Python · Region: Version, build and integration requirements apply

### Office layout preservation — limited

Standard\-library Office ingestion is described as HTML\-mediated extraction without faithful pagination; Pro is a separate option\.[^about]

Use case: Extract document content, render pages and manipulate PDFs in Python · Platforms: Windows, macOS, Linux, Python · Region: Version, build and integration requirements apply

### [Substitute for pypdf](/pypdf) — limited

Can replace selected PDF page and text\-processing tasks when native MuPDF components and different licensing fit; existing pypdf APIs require adaptation\.[^about][^install][^pypdf]

Use case: Extract document content, render pages and manipulate PDFs in Python · Platforms: Windows, macOS, Linux, Python · Region: Version, build and integration requirements apply

## References

[^about]: [PyMuPDF features and licensing](<https://pymupdf.readthedocs.io/en/latest/about.html>) — MuPDF basis, product boundaries, Office caveats and licensing (vendor; retrieved 2026-10-07T13:43:28Z)

[^open]: [Opening documents](<https://pymupdf.readthedocs.io/en/latest/how-to-open-a-file.html>) — File recognition, formats and remote byte streams (vendor; retrieved 2026-10-07T13:43:28Z)

[^ocr]: [Integrated OCR](<https://pymupdf.readthedocs.io/en/latest/recipes-ocr.html>) — Separate Tesseract dependency, hidden text and reusable TextPage (vendor; retrieved 2026-10-07T13:43:28Z)

[^parallel]: [Multiprocessing guidance](<https://pymupdf.readthedocs.io/en/latest/recipes-multiprocessing.html>) — Unsupported multithreading and process\-based handling (vendor; retrieved 2026-10-07T13:43:28Z)

[^install]: [Installation](<https://pymupdf.readthedocs.io/en/latest/installation.html>) — Wheels, native compilation, legacy fitz package collision and platform limits (vendor; retrieved 2026-10-07T13:43:28Z)

[^pypdf]: [pypdf overview](<https://pypdf.readthedocs.io/en/stable/>) — Python page manipulation and text extraction (vendor; retrieved 2026-10-07T13:43:28Z)

Source revision: https://substitutefor.net/entities/Q572?revision=620
