PyMuPDF
PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents. observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 96
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 26.0
- age_days: 5079
- days_rel: 27
- days_push: 7
- n_releases_24m: 23
Adoption not part of the score
10578 stars · 787 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
PyMuPDF is a high-performance Python library built on the MuPDF C engine for extracting, analyzing, converting, rendering, and manipulating PDF and other document formats. Its companion package pymupdf4llm provides utilities for converting documents into LLM/RAG-friendly output like Markdown.
Use cases
- extract text from pdf files in python
- convert pdfs to markdown for llm and rag pipelines
- extract tables from pdf documents
- perform ocr on scanned pdfs with tesseract
- render pdf pages to images
- manipulate and annotate pdf documents programmatically
When to choose
- you need fast, dependency-light PDF text and image extraction in Python
- you are building document ingestion pipelines for LLMs or RAG systems
- you need table extraction, OCR, or page rendering from PDFs
- you need low-level control over PDF structure alongside high-level APIs
When to avoid
- your project cannot accept AGPL-3.0 licensing and you cannot buy a commercial license
- you only need to create simple PDFs from scratch rather than process existing documents
- you need a pure-Python solution without a compiled C engine
Facets
library · maturity stable
pdf ocr parser image-processing nlp pdf files data-science developer-tools python cross-platform mupdf text-extraction table-extraction llm-rag document-conversion epub xps natural-language-processing
3 sources
- readme: https://github.com/pymupdf/PyMuPDF · fetched 2026-08-28 · e70b6bf8ae7d
- homepage: https://pymupdf.readthedocs.io/?utm_source=github&utm_medium=referral&utm_campaign=pymupdf_github&utm_content=about&utm_term=docs · fetched 2026-08-29 · 69176eac0714
- registry_pypi: https://pypi.org/pypi/pymupdf4llm/json · fetched 2026-08-29 · af6627c88bad
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pymupdf/PyMuPDF | main | 98 |
| pymupdf/pymupdf4llm | plugin | 82 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem