Introducing PyMuPDF 2.0

The Python Library for PDF Processing

Extract, understand, create, edit, render, convert, and automate PDF documents with PyMuPDF. PyMuPDF 2.0 also includes the structure-aware parsing capabilities brought together from PyMuPDF4LLM and Layout.

Get started
Processing
1B+Downloads
10+Years of development
1.18sParsing speedTime to parse a 457-page, 100 MB PDF, fast enough for real-time and large-batch workflows. 35× faster than PyPDF, 75.7× faster than MarkItDown
97%Table accuracyTable extraction accuracy on financial documents, with full cell structure and data type recognition.
What's new in 2.0

Structure-aware parsing is now part of PyMuPDF.

PyMuPDF, PyMuPDF4LLM, and Layout are brought together in PyMuPDF 2.0.

Install PyMuPDF and get the consolidated PDF processing capabilities in one package.

Why parsing quality matters

A PDF Is More Than Its Words

When a PDF is reduced to a wall of text, some of that context is lost. PyMuPDF can preserve more of the document structure so downstream applications have better content to work with.

After
Before
PyMuPDF
Built on MuPDF

Why PyMuPDF for Extraction

PyMuPDF is built on MuPDF, backed by a decade of PDF engineering. It runs locally and doesn't require a GPU — no cloud API needed just to process a document.

Reading the Document's DNA
Reading the Document's DNA

We read PDF structure (fonts, spacing, positions, etc) directly, then use a Graph Neural Network to understand the patterns.

CPU Processing, GPU-Level Accuracy
CPU Processing, GPU-Level Accuracy

While VLMs burn through expensive compute just to recognize titles and tables, our CPU-based approach handles all the structure extraction.

Built on Decades of PDF Knowledge
Built on Decades of PDF Knowledge

Decades of PDF expertise meeting real-world AI demands, engineered for modern workflows.

PyMuPDF Office

Need More Than PDFs?

PyMuPDF focuses on PDF. PyMuPDF Office extends document processing to Office and other formats. Use it when your workflow needs to work beyond PDF documents.

Compression

PyMuPDF Shrinks What You Already Store

Every document you parse, convert, or archive with PyMuPDF still has to live somewhere. Recompress it losslessly on the same stack, with no migration and no new format, and a few saved KB per file turns into terabytes back once you're operating at scale.

Explore Compression
Use cases

Put Document Content to Work

AI and retrieval

  • RAG pipelines
  • Document Q&A
  • Search
  • Knowledge bases
  • Information extraction
  • AI applications and agents

Automation

  • Invoice and report processing
  • Form processing
  • Data extraction
  • Document classification

Document workflows

  • PDF generation
  • Conversion
  • Archiving
  • Redaction
  • Merging and splitting
PyMuPDF vs Docling

Why Teams Choose PyMuPDF

Once you know what you're building, whether RAG pipelines, automation, or document workflows, the next question is what to build it on. PyMuPDF wins on install weight, speed, and ecosystem. See exactly how it stacks up against Docling.

Compare with Docling
Licensing

Open Source. Commercial When You Need It

PyMuPDF is open source and available under the AGPL license. If you're building a proprietary application and don't want to use the AGPL terms, a commercial license is available. PyMuPDF Office also adds support for Office and other document formats.

Learn about licensing

Frequently asked questions

Start Working with Your Documents

Process PDFs with a library built around the document itself: its content, structure, and layout.

PyMuPDF Logo

© 2026 Artifex Software Inc. All rights reserved.