Skip to main content

PyMuPDF

PyMuPDF Layout

Docs PyPI Version PyPI - Python Version License AGPL PyPI Downloads Discord Forum Twitter Hugging Face Demo

PyMuPDF Layout is a fast and lightweight layout analysis Python package integrated with PyMuPDF for clean, structured data output from PDF. It's fast, accurate and doesn't need GPUs like vision-based models.

While other tools train machine learning models on rendered page images, PyMuPDF Layout trains Graph Neural Networks directly on PDF internals. This gives us accuracy at 10× the speed utilizing CPU-only resources.

Features

  • 📚 Structured data extraction from your documents in Markdown, JSON or TXT format
  • 🧐 Advanced document page layout understanding, including semantic markup for titles, headings, headers, footers, tables, images and text styling
  • 🔍 Detect and isolate header and footer patterns on each page

Usage

PyMuPDF Layout is used by PyMuPDF4LLM to analyze documents and deliver improved results.

Documentation

PyMuPDF Layout is a component of PyMuPDF4LLM, see the PyMuPDF4LLM documentation page

Release files for pymupdf-layout 1.28.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for pymupdf-layout 1.28.2
File
pymupdf_layout-1.28.2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
pymupdf_layout-1.28.2-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
pymupdf_layout-1.28.2-cp310-abi3-macosx_10_9_x86_64.whl CPython 3.10 abi3 macOS 10.9+ x86-64 Details

Total release size: 214.7 MB

Release files / pymupdf_layout-1.28.2-cp310-abi3-win_amd64.whl

Download URL pymupdf_layout-1.28.2-cp310-abi3-win_amd64.whl
Size 42.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a765d3ba0b1622e8d5794772ad4303d824386f04b382a5d31c999a828ed4a089
BLAKE2b-256 checksum
How to use checksums
dba0f429e4c398db6f88071e305434d67f8c6455498f4c7ebb372b730553f073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_x86_64.whl
Size 42.9 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
4b44a1d8ebf897b0e862ee2d73e7df73099f1c047fc024d2dd24ef0632d2cb5f
BLAKE2b-256 checksum
How to use checksums
03656b92d25678c64839fb2066ee98d6d1f164d820ba045d83c77e79021cda98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_aarch64.whl
Size 42.9 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
fc7716682bfde26c002a7309cda0c520f3d2466dce368054d4fc2b653a74e8bc
BLAKE2b-256 checksum
How to use checksums
75826cbf0331e148db48bf609c165dbe900cf3c1158546c5d09d4ad7fd4d6b17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / pymupdf_layout-1.28.2-cp310-abi3-macosx_11_0_arm64.whl

Download URL pymupdf_layout-1.28.2-cp310-abi3-macosx_11_0_arm64.whl
Size 42.9 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d55e9b9150e1e9f182063b93092f0ba2c2475b51ea6da656e9d6edad0dd4054d
BLAKE2b-256 checksum
How to use checksums
161ff03250cb18d4942d16f335d90a7eef2411b29097ba52531e0062edf16186
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / pymupdf_layout-1.28.2-cp310-abi3-macosx_10_9_x86_64.whl

Download URL pymupdf_layout-1.28.2-cp310-abi3-macosx_10_9_x86_64.whl
Size 42.9 MB
Tags CPython 3.10 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
2a7368b5b0d75acb0835fae40a4d6e6c30ba457b388fedc75f06619a581ba17f
BLAKE2b-256 checksum
How to use checksums
e484cf9030e29adbfa9fb555d925af1e0f212d54810e50711bd059e6e71c7cb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

1.28.2 This release

5 release files

1.28.0

5 release files

1.27.2

5 release files

1.27.1

5 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page