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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymupdf-1.25.4.tar.gz | 69.8 MB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pymupdf-1.25.4-cp39-abi3-win_amd64.whl | CPython 3.9 | abi3 | Windows x86-64 | Details |
| pymupdf-1.25.4-cp39-abi3-win32.whl | CPython 3.9 | abi3 | Windows x86-32 | Details |
| pymupdf-1.25.4-cp39-abi3-musllinux_1_2_x86_64.whl | CPython 3.9 | abi3 | Linux musl 1.2+ x86-64 | Details |
| pymupdf-1.25.4-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.4-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | CPython 3.9 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| pymupdf-1.25.4-cp39-abi3-macosx_11_0_arm64.whl | CPython 3.9 | abi3 | macOS 11.0+ ARM64 | Details |
| pymupdf-1.25.4-cp39-abi3-macosx_10_9_x86_64.whl | CPython 3.9 | abi3 | macOS 10.9+ x86-64 | Details |
Total release size: 200.2 MB
Release files / pymupdf-1.25.4.tar.gz
| Download URL | pymupdf-1.25.4.tar.gz |
|---|---|
| Size | 69.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f189466b68901055a9ddc77dc1c91cba081a60964f0caa6ff5b9b87001a0194
|
|
BLAKE2b-256 checksum How to use checksums |
2556d7de0325125621a3d095eb43ce35f2e036cd4c0489ff5e8cae816f1cd8b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.10
|
Release files / pymupdf-1.25.4-cp39-abi3-win_amd64.whl
| Download URL | pymupdf-1.25.4-cp39-abi3-win_amd64.whl |
|---|---|
| Size | 16.6 MB |
| Tags | CPython 3.9 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
af8fa1f7920b3b27343b2511cb9fc44baf2bad8b948db0b0f9d5b2fa589cb305
|
|
BLAKE2b-256 checksum How to use checksums |
c39f2872a29766dfe65fb97268233503cc9f7ba6e776eedbdb88ed47216aef84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.10
|
Release files / pymupdf-1.25.4-cp39-abi3-win32.whl
| Download URL | pymupdf-1.25.4-cp39-abi3-win32.whl |
|---|---|
| Size | 15.1 MB |
| Tags | CPython 3.9 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
d90e6087f9b153999fa9f2c4709488fb0355de0302ec502a76c4fc0c0a0c535e
|
|
BLAKE2b-256 checksum How to use checksums |
0e0a3eb1fab9e788790be32d8ca43235f59652d44252168bfba457c5496948fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.10
|
Release files / pymupdf-1.25.4-cp39-abi3-musllinux_1_2_x86_64.whl
| Download URL | pymupdf-1.25.4-cp39-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 21.3 MB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
a8c23242d209512437187dc728001fc7c65c2dd9d37b50071f34c5cd745194a3
|
|
BLAKE2b-256 checksum How to use checksums |
09f83ba60c9cbb01c9aacc2e1c35fc7640456306da99cdea913954f33a0c9c74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.10
|
Release files / pymupdf-1.25.4-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | pymupdf-1.25.4-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 |
72817aa5f5023632346eee4aad0c32018d7879cf9a72e1820054dc9d8c48150f
|
|
BLAKE2b-256 checksum How to use checksums |
36ae9b3651d457698ff5e19c5a663c51703cc990892b35cf4a779c36a1a1bf64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.10
|
Release files / pymupdf-1.25.4-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | pymupdf-1.25.4-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 |
bd16e264438b01bf6f6b8722deb49df20c0a9a7be2b4a8e29dcb7b5183d8b42a
|
|
BLAKE2b-256 checksum How to use checksums |
412f7ca622fff06e879fd4adcde8b1bdbe9989ff2f36fc0607481581f4a3caa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.10
|
Release files / pymupdf-1.25.4-cp39-abi3-macosx_11_0_arm64.whl
| Download URL | pymupdf-1.25.4-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 |
72ac2a460e15a4b75fb22d0bdeb9eb9b3bd6ab44d5288e56f85ff9e4241d0830
|
|
BLAKE2b-256 checksum How to use checksums |
ae760757056bdcf273de4934681b84acde6e0b61a46b1755038e8d786ac6b368
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.10
|
Release files / pymupdf-1.25.4-cp39-abi3-macosx_10_9_x86_64.whl
| Download URL | pymupdf-1.25.4-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 |
b39ab5fc0cc793f2a93908cb4dc13182e61e9ace3476850ebf0e505f65355475
|
|
BLAKE2b-256 checksum How to use checksums |
59facd82d78401bed6452ea07e2a3ffd6c30eddb635b888ea5f2f699c2968e80
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.10
|