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.

Metadata

Release files for pymupdf 1.24.14

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.24.14
File Size Uploaded
PyMuPDF-1.24.14.tar.gz 56.2 MB Details

Built distributions (wheels)

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

Total release size: 185.2 MB

Release files / PyMuPDF-1.24.14.tar.gz

Download URL PyMuPDF-1.24.14.tar.gz
Size 56.2 MB
Tags Source
SHA-256 checksum
How to use checksums
0eed9f998525eaf39706dbf2d0cf3162150f0f526e4a36b1748ffa50bde581ae
BLAKE2b-256 checksum
How to use checksums
e06b6bd735144a190d26dcc23f98b4aae0e09b259cc4c87bba266a39b7b91f56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / PyMuPDF-1.24.14-cp39-abi3-win_amd64.whl

Download URL PyMuPDF-1.24.14-cp39-abi3-win_amd64.whl
Size 16.3 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
3d1f1ec2fe0249484afde7a0fc02589f19aaeb47c42939d23ae1d012aa1bc59b
BLAKE2b-256 checksum
How to use checksums
25b282d70d9f5aea5a33e770f37e6db43ed08b5dc71b3526c5d7051689d1031e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / PyMuPDF-1.24.14-cp39-abi3-win32.whl

Download URL PyMuPDF-1.24.14-cp39-abi3-win32.whl
Size 15.0 MB
Tags CPython 3.9 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
60a7ee7db3e0d3a4dcbe6df2781ba4487acb7e515c64ea9c857504f44effcb25
BLAKE2b-256 checksum
How to use checksums
872b46af7461bd299c3f52bc5455332cc82608cea1667cd692652505fdf9308e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / PyMuPDF-1.24.14-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL PyMuPDF-1.24.14-cp39-abi3-musllinux_1_2_x86_64.whl
Size 21.0 MB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
2d1b5c47df2f8055de5dedfbd3189c742188261a8c257f406378382adac94cff
BLAKE2b-256 checksum
How to use checksums
77ed40eb23cf5e91de0510dfedb7d9feedeab5ce9691544ad09599e124a0a333
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / PyMuPDF-1.24.14-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL PyMuPDF-1.24.14-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 19.8 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
0de4f5ed903c2be6d0abcccdc796368939b51ce03916eb53292916e3b6ea65d6
BLAKE2b-256 checksum
How to use checksums
27bf203d06c68660d5535db65b6c54cacd35b950945c11c1c4546d674f270892
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / PyMuPDF-1.24.14-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL PyMuPDF-1.24.14-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 19.3 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
37f24108e2e18150fb8d512dcccdfa1e3d9b9dd203ffaa7ffb959bb20aea40b4
BLAKE2b-256 checksum
How to use checksums
5169518e6c088e20a5ded1fc658d4aec1e54c0f98f2d62d91362bd4231df9ecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / PyMuPDF-1.24.14-cp39-abi3-macosx_11_0_arm64.whl

Download URL PyMuPDF-1.24.14-cp39-abi3-macosx_11_0_arm64.whl
Size 18.4 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
755906af4b4d693552ae5469ba682075853f4dc8a70639affd1bd6c049c5d900
BLAKE2b-256 checksum
How to use checksums
2c118d6f4c8fca86b93759e430c4b0b7b66f8067d58893d6fe0a193420d14453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / PyMuPDF-1.24.14-cp39-abi3-macosx_10_9_x86_64.whl

Download URL PyMuPDF-1.24.14-cp39-abi3-macosx_10_9_x86_64.whl
Size 19.2 MB
Tags CPython 3.9 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
b3ad7a4f4b607ff97f2e1b8111823dd3797dbb381ec851c3ae4695fea6f68478
BLAKE2b-256 checksum
How to use checksums
62ce972b080c526af80577ffaa49676c05361ba152de94de3af339a2f3ac07c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

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

1.25.1

8 release files

This release

1.24.14 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