Introducing PyMuPDF 2.0

Turn PDF Documents Into
Structured Data

PyMuPDF is the fast, lightweight Python library for PDF processing, built for AI applications, search, extraction, automation, and more.

Get Started
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 changed in 2.0

Structure-Aware Analysis,
Now Part of PyMuPDF

PyMuPDF 2.0 brings PyMuPDF, PyMuPDF4LLM, and Layout together. That means structure-aware document parsing is now part of the main PyMuPDF package instead of requiring a separate package.

Extracted structured data, example 1
Extracted structured data, example 2
Grounding in document extraction
Grounding in 2.0

Grounding in Document Extraction

Ground AI answers in the original document, so you can trust the results, trace their sources, and verify the evidence.

  • Preserve the structure and relationships within the original document.
  • Connect content to its exact source location, from text blocks to table cells.
  • Give AI results the context needed to reference and validate sources.
Learn More

GNN trained on PDF internals, not pixels

Graph Neural Network reads vector structure directly. No image rendering pipeline, no OCR uncertainty. By parsing primitives instead of pixels, we preserve 100% of the table semantics and document hierarchy.

GNN trained on PDF internals, not pixels

CPU-only. Sub-second. Self-hosted

No GPU. No cloud dependency. Runs anywhere Python runs. PyMuPDF extracts structured data in milliseconds on standard instances, cutting infrastructure costs by up to 250x.

CPU-only. Sub-second. Self-hosted

Native Markdown, JSON, & LlamaIndex Ready

One import brings your documents straight into the RAG pipeline. Support for natural reading order, table conversion, and image extraction is baked in, with direct output to Markdown for vector embeddings.

Native Markdown, JSON, & LlamaIndex Ready

Up and Running in One pip install

With PyMuPDF 2.0, GNN-trained parsing, CPU-only performance, and LLM-ready output all ship in one package. No separate installs, no juggling versions, just one pip install.

Up and Running in One pip install

PyMuPDF Office

Everything in PyMuPDF, plus Office (Word, Excel, PowerPoint) and HWP support.

The PyMuPDF Family

Product
LICENSE
AGPLFree to use under the GNU Affero General Public License. Requires open-sourcing your application if distributed.CommercialPaid license for proprietary or commercial use without AGPL obligations.
SOURCE CODE
Open SourceSource code is publicly available and can be inspected, modified, and contributed to.
INPUT FILES
PDF, XPS, EPUB, CBZ, MOBI, FB2, SVG, TXT, MD, ImagePDF, XPS, EPUB, CBZ, MOBI, FB2, SVG, TXT, MD, and Image formats are natively supported.
DOC/DOCX, XLS/XLSX, PPT/PPTX, HWP/HWPXDOC/DOCX, XLS/XLSX, PPT/PPTX, HWP/HWPX are not supported in this product.
OUTPUT FILES
PDF, SVG, ImageGenerates PDF, SVG, and Image formats directly.
Markdown, JSON, TXTMarkdown, JSON, and TXT are supported, ideal for structured or AI-ready output.
PAGE ANALYSIS
Advanced Page AnalysisUses trained data for enhanced structural recognition and superior layout results.
TEXT EXTRACTION
Advanced Text ExtractionExtracts text with structure tags (headings, lists, tables), page layout analysis, and semantic understanding. Includes superior table extraction with full cell structure and data type recognition.
IMAGE EXTRACTION
Advanced Image ExtractionAdvanced detection and rendering of image areas on the page. Saves to disk or embeds in Markdown output.
VECTOR EXTRACTION
Advanced Vector ExtractionSuperior detection of picture areas with precise vector element identification.
OCR
Automatic OCRAutomatically applies OCR based on page content analysis. No manual trigger needed.

Join Our Forum

No marketing speak, no sales pitches. Just developers helping developers ship document processing features faster.

VISIT FORUM
PyMuPDF Forum Community

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.