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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pymupdf_layout-1.28.2-cp310-abi3-win_amd64.whl (42.9 MB view details)

Uploaded CPython 3.10+Windows x86-64

pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_x86_64.whl (42.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_aarch64.whl (42.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

pymupdf_layout-1.28.2-cp310-abi3-macosx_11_0_arm64.whl (42.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

pymupdf_layout-1.28.2-cp310-abi3-macosx_10_9_x86_64.whl (42.9 MB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

Details for the file pymupdf_layout-1.28.2-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for pymupdf_layout-1.28.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a765d3ba0b1622e8d5794772ad4303d824386f04b382a5d31c999a828ed4a089
MD5 a4ef91ef57a4c8834e9467c45f26f7fa
BLAKE2b-256 dba0f429e4c398db6f88071e305434d67f8c6455498f4c7ebb372b730553f073

See more details on using hashes here.

File details

Details for the file pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4b44a1d8ebf897b0e862ee2d73e7df73099f1c047fc024d2dd24ef0632d2cb5f
MD5 9a2c82a8eb6ad82dcaec628660d719e9
BLAKE2b-256 03656b92d25678c64839fb2066ee98d6d1f164d820ba045d83c77e79021cda98

See more details on using hashes here.

File details

Details for the file pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymupdf_layout-1.28.2-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fc7716682bfde26c002a7309cda0c520f3d2466dce368054d4fc2b653a74e8bc
MD5 78d9d81e84eb18f53abaa4f619841f2c
BLAKE2b-256 75826cbf0331e148db48bf609c165dbe900cf3c1158546c5d09d4ad7fd4d6b17

See more details on using hashes here.

File details

Details for the file pymupdf_layout-1.28.2-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymupdf_layout-1.28.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d55e9b9150e1e9f182063b93092f0ba2c2475b51ea6da656e9d6edad0dd4054d
MD5 a58be7a17151f13c2cc1a12c4bdadbc9
BLAKE2b-256 161ff03250cb18d4942d16f335d90a7eef2411b29097ba52531e0062edf16186

See more details on using hashes here.

File details

Details for the file pymupdf_layout-1.28.2-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf_layout-1.28.2-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2a7368b5b0d75acb0835fae40a4d6e6c30ba457b388fedc75f06619a581ba17f
MD5 f9b8ea8786643f042e784c8c39777c7c
BLAKE2b-256 e484cf9030e29adbfa9fb555d925af1e0f212d54810e50711bd059e6e71c7cb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page