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.5

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.5
File Size Uploaded
pymupdf-1.25.5.tar.gz 69.8 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for pymupdf 1.25.5
File
pymupdf-1.25.5-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
pymupdf-1.25.5-cp39-abi3-win32.whl CPython 3.9 abi3 Windows x86-32 Details
pymupdf-1.25.5-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
pymupdf-1.25.5-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.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
pymupdf-1.25.5-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
pymupdf-1.25.5-cp39-abi3-macosx_10_9_x86_64.whl CPython 3.9 abi3 macOS 10.9+ x86-64 Details

Total release size: 200.3 MB

Release files / pymupdf-1.25.5.tar.gz

Download URL pymupdf-1.25.5.tar.gz
Size 69.8 MB
Tags Source
SHA-256 checksum
How to use checksums
5f96311cacd13254c905f6654a004a0a2025b71cabc04fda667f5472f72c15a0
BLAKE2b-256 checksum
How to use checksums
f9af3d5d363241b9a74470273cf1534436f13a0a61fc5ef6efd19e5afe9de812
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.5-cp39-abi3-win_amd64.whl

Download URL pymupdf-1.25.5-cp39-abi3-win_amd64.whl
Size 16.6 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
7f44bc3d03ea45b2f68c96464f96105e8c7908896f2fb5e8c04f1fb8dae7981e
BLAKE2b-256 checksum
How to use checksums
71c2a9059607f80dcaf2392f991748cfc53456820392c0220cff02572653512a
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.5-cp39-abi3-win32.whl

Download URL pymupdf-1.25.5-cp39-abi3-win32.whl
Size 15.1 MB
Tags CPython 3.9 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
65e18ddb37fe8ec4edcdbebe9be3a8486b6a2f42609d0a142677e42f3a0614f8
BLAKE2b-256 checksum
How to use checksums
ec47682a8ddce650e09f5de6809c9bce926b2493a19b7f9537d80d4646989670
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.5-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL pymupdf-1.25.5-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
6ed7fc25271004d6d3279c20a80cb2bb4cda3efa9f9088dcc07cd790eca0bc63
BLAKE2b-256 checksum
How to use checksums
bddbb4edec9e731ea7c2b74bf28b9091ed4e919d5c7f889ef86352b7fd416197
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.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pymupdf-1.25.5-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
ee22155d3a634642d76553204867d862ae1bdd9f7cf70c0797d8127ebee6bed5
BLAKE2b-256 checksum
How to use checksums
181295e2ebe2933f94800fdeafd87bc281a790e1dc947b147c3d101df4f73703
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.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL pymupdf-1.25.5-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
d94b800e9501929c42283d39bc241001dd87fdeea297b5cb40d5b5714534452f
BLAKE2b-256 checksum
How to use checksums
8b2229edb3236aed2f99a7922699fd71183e2f6cdde3c3884670158ae4dcf3ea
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.5-cp39-abi3-macosx_11_0_arm64.whl

Download URL pymupdf-1.25.5-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
5a35e2725fae0ab57f058dff77615c15eb5961eac50ba04f41ebc792cd8facad
BLAKE2b-256 checksum
How to use checksums
4e5543b64fa6cd048d2ea4574c045b5ac05d023254b91c2c703185f6f8a77b30
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.5-cp39-abi3-macosx_10_9_x86_64.whl

Download URL pymupdf-1.25.5-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
cde4e1c9cfb09c0e1e9c2b7f4b787dd6bb34a32cfe141a4675e24af7c0c25dd3
BLAKE2b-256 checksum
How to use checksums
855f153d6c338291448e182648844849d13938a62a82a3e4a9b0907d9b381148
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 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

This release

1.25.5 This release

8 release files

1.25.4

8 release files

1.25.2

8 release files

1.25.1

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