Skip to main content

PyMuPDF

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

Community

Join us on Discord here: #pymupdf

Installation

PyMuPDF requires Python 3.9 or later, install using pip with:

pip install PyMuPDF

There are no mandatory external dependencies. However, some optional features become available only if additional packages are installed.

You can also try without installing by visiting PyMuPDF.io.

Usage

Basic usage is as follows:

import pymupdf # imports the pymupdf library
doc = pymupdf.open("example.pdf") # open a document
for page in doc: # iterate the document pages
  text = page.get_text() # get plain text encoded as UTF-8

Documentation

Full documentation can be found on pymupdf.readthedocs.io.

Optional Features

  • fontTools for creating font subsets.
  • pymupdf-fonts contains some nice fonts for your text output.
  • Tesseract-OCR for optical character recognition in images and document pages.

About

PyMuPDF adds Python bindings and abstractions to MuPDF, a lightweight PDF, XPS, and eBook viewer, renderer, and toolkit. Both PyMuPDF and MuPDF are maintained and developed by Artifex Software, Inc.

PyMuPDF was originally written by Jorj X. McKie.

License and Copyright

PyMuPDF is available under open-source AGPL and commercial license agreements. If you determine you cannot meet the requirements of the AGPL, please contact Artifex for more information regarding a commercial license.

Release files for pymupdf 1.25.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymupdf 1.25.1
File Size Uploaded
pymupdf-1.25.1.tar.gz 61.0 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pymupdf 1.25.1
File
pymupdf-1.25.1-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
pymupdf-1.25.1-cp39-abi3-win32.whl CPython 3.9 abi3 Windows x86-32 Details
pymupdf-1.25.1-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
pymupdf-1.25.1-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
pymupdf-1.25.1-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
pymupdf-1.25.1-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
pymupdf-1.25.1-cp39-abi3-macosx_10_9_x86_64.whl CPython 3.9 abi3 macOS 10.9+ x86-64 Details

Total release size: 191.2 MB

Release files / pymupdf-1.25.1.tar.gz

Download URL pymupdf-1.25.1.tar.gz
Size 61.0 MB
Tags Source
SHA-256 checksum
How to use checksums
6725bec0f37c2380d926f792c262693c926af7cc1aa5aa2b8207e771867f015a
BLAKE2b-256 checksum
How to use checksums
c38876c076c152be6d29a792defc3b3bff73de7f690e55f978b66adf6dbb8a1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.10

Release files / pymupdf-1.25.1-cp39-abi3-win_amd64.whl

Download URL pymupdf-1.25.1-cp39-abi3-win_amd64.whl
Size 16.6 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e2b0b73c0aab0f863e5132c93cfa4607e8129feb1afa3d544b2cf7f172c50b5a
BLAKE2b-256 checksum
How to use checksums
46728c5bbf817aacebe21a454f3ade8ee4b5b17afe698bb73d65c4ca23a89a87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.10

Release files / pymupdf-1.25.1-cp39-abi3-win32.whl

Download URL pymupdf-1.25.1-cp39-abi3-win32.whl
Size 15.1 MB
Tags CPython 3.9 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
fc7dbc1aa9e298a4c81084e389c9623c26fcaa232c71efaa073af150069e2221
BLAKE2b-256 checksum
How to use checksums
a1d1440b267842a1374f8d55c508302882f2ef7dd0f859514f060e1618ef97aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.10

Release files / pymupdf-1.25.1-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL pymupdf-1.25.1-cp39-abi3-musllinux_1_2_x86_64.whl
Size 21.1 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
a687bd387589e30abd810a78a23341f57f43fa16a4d8d8c0b870bb6d89607343
BLAKE2b-256 checksum
How to use checksums
8ce31a7a8400f1688c3c782478635ca929f85facd266157e4b90d650766bc49d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.10

Release files / pymupdf-1.25.1-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pymupdf-1.25.1-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 20.0 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
b63f8e9e65b0bda48f9217efd4d2a8c6d7a739dd28baf460c1ae78439b9af489
BLAKE2b-256 checksum
How to use checksums
77157bf672afb99002ad813aeb4886cc601bb9a4629210d9a3906a8d5650a941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.10

Release files / pymupdf-1.25.1-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL pymupdf-1.25.1-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 19.5 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
a39afbd80381f43e30d6eb2ec4613f465f507ac2b76070abdd2da8724f32ef36
BLAKE2b-256 checksum
How to use checksums
32bfd7697604ea2b1fe299c7bdf4b57e3549693ce73f75c44e890cfd34837d23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.10

Release files / pymupdf-1.25.1-cp39-abi3-macosx_11_0_arm64.whl

Download URL pymupdf-1.25.1-cp39-abi3-macosx_11_0_arm64.whl
Size 18.6 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
15e6f4013ad0a029a2221920f9d2081f56dc43259dabfdf5cad7fbf1cee4b5a7
BLAKE2b-256 checksum
How to use checksums
0eb62ad245dcbbb1abae9eeb8de5049b27c12c9ee8590c6c769499e386164bd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.10

Release files / pymupdf-1.25.1-cp39-abi3-macosx_10_9_x86_64.whl

Download URL pymupdf-1.25.1-cp39-abi3-macosx_10_9_x86_64.whl
Size 19.4 MB
Tags CPython 3.9 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
793f9f6d51029e97851c711b3f6d9fe912313d95a306fbe8b1866f301d0e2bd3
BLAKE2b-256 checksum
How to use checksums
927be7205ea48f547122c226a34f5452bc72915b6d06d7925970b8dd3493baf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.10

Release history Release notifications | RSS feed

1.27.2

9 release files

1.27.1

8 release files

1.26.7

8 release files

1.26.5

8 release files

1.26.4

8 release files

1.26.1

8 release files

1.26.0

8 release files

1.25.5

8 release files

1.25.4

8 release files

1.25.2

8 release files

This release

1.25.1 This release

8 release files

1.10.0

1.9.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page