pymupdf-layout
PyMuPDF Layout turns PDFs into structured data 10× faster than vision-based tools using AI trained on PDF internals, not images. CPU-only. No GPU required.
Install
pymupdf-layout on PyPI
pip
pip install pymupdf-layoutuv
uv add pymupdf-layoutpoetry
poetry add pymupdf-layoutPackage facts
| License | Dual Licensed - GNU AFFERO GPL 3.0 or Artifex Commercial License (agpl) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 5 — PyMuPDF, pyyaml, numpy, onnxruntime, networkx |
| Maintenance | actively maintained — 7 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: pymupdf_layout-1.28.2-cp310-abi3-macosx_10_9_x86_64.whl; pymupdf_layout-1.28.2-cp310-abi3-macosx_11_0_arm64.whl; pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_aarch64.whl; pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_x86_64.whl; pymupdf_layout-1.28.2-cp310-abi3-win_amd64.whl
About pymupdf-layout
from the package's own PyPI description — quoted content, verbatim
<p align="center"> <a href="https://pymupdf.io?utm_source=github&utm_medium=referral&utm_campaign=pymupdf_github&utm_content=logo&utm_term=website"> <img loading="lazy" alt="PyMuPDF" src="https://pymupdf.pro/images/py-mupdf-github-icon.png" width="96px" alt="PyMuPDF logo"/> </a> </p>
PyMuPDF Layout
Docs (image) PyPI Version (image) PyPI - Python Version (image) License AGPL (image) [![PyPI...
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
PyMuPDF Layout analyzes PDF structure using Graph Neural Networks trained on PDF internals to extract clean, semantically-marked data (Markdown, JSON, TXT) without requiring GPUs or vision models.
Medium install friction due to compiled wheels (C/C++ components) across multiple platforms; however, active maintenance (7 days since last release) and production-stable status indicate solid upkeep. Requires Python ≥3.10.
Dual-licensed under AGPL 3.0 or Artifex Commercial License. AGPL use requires source disclosure of derivative works; commercial licensing available from Artifex for proprietary deployments.
Usage
pip install pymupdf-layout
from pymupdf_layout import analyze_pdf
result = analyze_pdf('document.pdf')
Requires Python ≥3.10 and compiled dependencies (C/C++); prebuilt wheels available for macOS (x86_64, arm64), Linux (x86_64, aarch64), and Windows (x64).
Verdict: Production-ready layout analysis tool with strong maintenance signals and no known vulnerabilities. AGPL licensing requires careful evaluation for commercial or closed-source projects. Medium install friction is manageable given broad platform coverage via prebuilt wheels.
Needs verification
- Whether onnxruntime and networkx are required at runtime or only for specific features
- Performance benchmarks substantiating the claimed 10× speedup versus vision-based alternatives
- Minimum PDF complexity or size where layout analysis becomes meaningful
Similar packages
agpl · top 1,000 on PyPI
pymupdf4llmagpl · top 1,000 on PyPI
weaviate-clientpermissive · top 1,000 on PyPI
Djangopermissive · top 1,000 on PyPI
pdfminer.sixpermissive · top 1,000 on PyPI
reportlabpermissive · top 1,000 on PyPI
huggingface-hubpermissive · top 100 on PyPI
torchpermissive · top 1,000 on PyPI
datasetspermissive · top 1,000 on PyPI
nvidia-cudnn-cu13unclear · top 1,000 on PyPI