skillfed

pymupdf

A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.

pymupdf AGPL license Dual Licensed - GNU AFFERO GPL 3.0 or Artifex Commercial License Active 10,471 v1.28.2 released

Install

pymupdf on PyPI

pip

pip install pymupdf

uv

uv add pymupdf

poetry

poetry add pymupdf

Package facts

License Dual Licensed - GNU AFFERO GPL 3.0 or Artifex Commercial License (agpl)
Python support supports the current Python release (>=3.10)
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance actively maintained — 7 days since the last release
Last repo commit
First released
Popularity one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13)
Known vulnerabilities none known (OSV.dev, checked 2026-08-13)

Evidence: pymupdf-1.28.2-cp310-abi3-macosx_10_15_x86_64.whl; pymupdf-1.28.2-cp310-abi3-macosx_11_0_arm64.whl; pymupdf-1.28.2-cp310-abi3-manylinux_2_28_aarch64.whl; pymupdf-1.28.2-cp310-abi3-manylinux_2_28_x86_64.whl; pymupdf-1.28.2-cp310-abi3-musllinux_1_2_x86_64.whl; pymupdf-1.28.2-cp310-abi3-win32.whl; pymupdf-1.28.2-cp310-abi3-win_amd64.whl; pymupdf-1.28.2-cp310-abi3-win_arm64.whl; pymupdf-1.28.2-cp313-abi3-pyemscripten_2025_0_wasm32.whl; pymupdf-1.28.2-cp314-cp314t-manylinux_2_28_x86_64.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Information TechnologyOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: CProgramming Language :: C++Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: Implementation :: CPythonTopic :: Multimedia :: GraphicsTopic :: Software Development :: LibrariesTopic :: Utilities

About pymupdf

from the package's own PyPI description — quoted content, verbatim

<p align="center"> <a href="https://pymupdf.io?utm_source=github&utm_medium=referral&utm_campaign=pymupdf_github&utm_content=logo&utm_term=website"> <img loading="lazy" alt="PyMuPDF" src="https://pymupdf.pro/images/py-mupdf-github-icon.png" width="96px" alt="PyMuPDF logo"/> </a> </p>

PyMuPDF

<p align="center"> <a href="https://trendshift.io/repositories/11536" target="_blank"><img src="https://trendshift.io/api/badge/repositories/11536" alt="pymupdf%2FPyMuPDF | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a> </p>

Docs (image) PyPI Version (image) PyPI - Python Version (image) License AGPL (image) [![PyPI...

Read as markdown · JSON record · Source repository · Docs

AI interpretation — verify before relying

AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page

PyMuPDF extracts, renders, converts, and manipulates PDF and document files (including XPS, EPUB, images, and Office formats via Pro) with pixel-perfect text and layout metadata, powered by the MuPDF C engine.

Medium install friction due to compiled C/C++ dependencies, but pre-built wheels cover Python 3.10–3.14 on Windows, macOS (x86_64 and ARM), Linux, and WebAssembly. Active maintenance with a release 7 days ago; no runtime Python dependencies required.

Licensed under GNU AGPL 3.0 or Artifex Commercial License (dual). AGPL requires derivative works and network use to share source; commercial licensing available for proprietary deployments.

Usage

pip install pymupdf

import pymupdf

doc = pymupdf.open("document.pdf")
page = doc[0]
text = page.get_text()
print(text)

Requires Python ≥3.10; if no pre-built wheel matches your platform, a C/C++ toolchain is needed to compile from source.

Verdict: PyMuPDF is a mature, actively maintained PDF engine with zero known vulnerabilities and no mandatory runtime dependencies. Medium install friction is offset by broad wheel coverage and production-stable status. AGPL licensing requires careful review for commercial or network-deployed use; Artifex Commercial License available as alternative.

Needs verification

  • Whether pre-built wheels for Python 3.14 and WebAssembly are production-ready or experimental
  • Specific performance characteristics or memory footprint compared to other PDF libraries
  • Whether the optional extras (pymupdf-fonts, pymupdf4llm, pymupdfpro) are separately licensed or subject to the same AGPL terms
  • Actual GitHub star count and release frequency beyond the single 7-day data point provided
pdf text extraction pythonpdf rendering and conversiondocument parsing with layoutpdf to markdown llmtable detection from pdfpdf annotation and redactionoffice document to pdf

Similar packages