Skip to main content

Python bindings for the PDF rendering library MuPDF

Project description

Release date: February 28, 2021

Authors

  • Jorj X. McKie

  • Ruikai Liu

Introduction

PyMuPDF (current version 1.18.9) is a Python binding with support for MuPDF (current version 1.18.*), a lightweight PDF, XPS, and E-book viewer, renderer and toolkit, which is maintained and developed by Artifex Software, Inc.

MuPDF can access files in PDF, XPS, OpenXPS, CBZ, EPUB and FB2 (e-books) formats, and it is known for its top performance and high rendering quality.

With PyMuPDF you can access files with extensions like “.pdf”, “.xps”, “.oxps”, “.cbz”, “.fb2” or “.epub”. In addition, about 10 popular image formats can also be opened and handled like documents.

PyMuPDF should run on all platforms that are supported by both, MuPDF and Python 3.6+. These include, but are not limited to, Windows, Mac OSX and Linux, 32-bit or 64-bit. If you can generate MuPDF on a Python supported platform, then also PyMuPDF can be used there.

PyMuPDF is hosted on GitHub where you find up-to-date information of its features, our issue tracker, Wikis and much more.

Installation

For all MS Windows versions as well as popular Max OSX and Linux versions, we are providing Python wheels - see the download section of this site and the current release directory of our home page. Other platforms need to download and generate MuPDF first and then build PyMuPDF from sources. Do visit our GitHub home, which has more details on this, including latest bugfixes, pre-releases, etc.

Usage and Documentation

For all document types you can render pages in raster (PNG) or vector (SVG) formats, extract text and access meta information, links, annotations and bookmarks, as well as decrypt the document. For PDF files, these objects can also be created, modified or deleted. Plus you can rotate, re-arrange, duplicate, create, or delete pages and join or split documents.

PDF password protection is fully supported: owner and user passwords, encryption methods and permission levels can be set, changed or removed.

Specifically for PDF files, PyMuPDF provides update access to low-level structure information, supports optional content, handling of embedded files and modification of page contents (like inserting images, fonts, text, annotations and drawings).

Other features include embedding vector images (SVG, PDF) such as logos or watermarks, joining or splitting single PDF pages (including things like posterizing and 2-up / 4-up processing).

You can also create PDF Form fields with support for text, checkbox, listbox and combobox widgets.

Our home page provides many examples and How-Tos for all of this. At a minimum, read the tutorial and the the recipes sections of our documentation.

Written using Sphinx, documentation is available here:

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyMuPDF-1.18.9.tar.gz (308.5 kB view details)

Uploaded Source

Built Distributions

PyMuPDF-1.18.9-cp39-cp39-win_amd64.whl (5.3 MB view details)

Uploaded CPython 3.9 Windows x86-64

PyMuPDF-1.18.9-cp39-cp39-win32.whl (4.9 MB view details)

Uploaded CPython 3.9 Windows x86

PyMuPDF-1.18.9-cp39-cp39-manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.9-cp39-cp39-macosx_10_9_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

PyMuPDF-1.18.9-cp38-cp38-win_amd64.whl (5.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

PyMuPDF-1.18.9-cp38-cp38-win32.whl (4.9 MB view details)

Uploaded CPython 3.8 Windows x86

PyMuPDF-1.18.9-cp38-cp38-manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.9-cp38-cp38-macosx_10_9_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

PyMuPDF-1.18.9-cp37-cp37m-win_amd64.whl (5.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

PyMuPDF-1.18.9-cp37-cp37m-win32.whl (4.9 MB view details)

Uploaded CPython 3.7m Windows x86

PyMuPDF-1.18.9-cp37-cp37m-manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.9-cp37-cp37m-macosx_10_9_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

PyMuPDF-1.18.9-cp36-cp36m-win_amd64.whl (5.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

PyMuPDF-1.18.9-cp36-cp36m-win32.whl (4.9 MB view details)

Uploaded CPython 3.6m Windows x86

PyMuPDF-1.18.9-cp36-cp36m-manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.9-cp36-cp36m-macosx_10_9_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

Details for the file PyMuPDF-1.18.9.tar.gz.

File metadata

  • Download URL: PyMuPDF-1.18.9.tar.gz
  • Upload date:
  • Size: 308.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9.tar.gz
Algorithm Hash digest
SHA256 cb6ba6c5038ce590a088b9bf320c6e9ce714c1fa304181ece8b551d8589a8b21
MD5 11a62a2b4dce3107dfd308ef2fe9491d
BLAKE2b-256 6ac21891e193f30a61eb1442eda59ff5aa0b9297ab5fd2bf932c729a12179a87

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9b526f0e7cebb56abb2ad569552bd313c37cabc5ce59614791079816ba6459d4
MD5 f575bd43cf184f15125c6a70e9d8c4eb
BLAKE2b-256 1121299c94c69277f8dbca7fc414eb3ad988cb5e3c0d985ead547b49481dbad4

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp39-cp39-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp39-cp39-win32.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 65a1daaf77434f6da95fa63437713fabe8d818f00e4e3af9f4a64fe16804ad32
MD5 dfc63c2dbd38a0900a49d02133517522
BLAKE2b-256 2aba0c3da335d7dcb424386746aa698d750c22aa739eca758ed004e2c5ac1e2a

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d554e5711dc6a3be67af9b8bcdd4093ad6bcc4081af319a0fb0433815df73f5e
MD5 040829ec3ab8750b5af1ac4cce63b4a6
BLAKE2b-256 4542640f77473ae49c30d391d792a9baaf489a624e5c623d159d646840ff0e32

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5b94b885d9d5b7483871e08bbd189b37e2bc30a4760d4eb809de5f18d4e4beb0
MD5 22d8ede92bb37df29e035b7a052683ae
BLAKE2b-256 27861d28f3f99e10664113716a5b2d77141b72fc5f3eb5bd0b326539637a8568

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4b5352569339cde5f0379cda550f35c340e57d38f2a2d73e3545c17f7702bbfc
MD5 5963d9ab4b370c8ceb615880f3e2f53a
BLAKE2b-256 1269a3f1381b64c24a7f0e851ebe42b2a27f5e9db0b3182045356615b24b34d8

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp38-cp38-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp38-cp38-win32.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5c07e65208cabdf6aa2a14c4dce571252260f0e121420b8a631ad9df05e4e2d6
MD5 abf2bdfc5ad5b7708f52f151b5410796
BLAKE2b-256 0bb301a04182fa5ef74c2b97d47fb4a637cd15252058858938bfab304f459945

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fe450ff5b0012b7ef795abafcb156ff3b0108a12c184bd8105c5df7794788d3c
MD5 7bea62d92008f4285f22092b49cfcbec
BLAKE2b-256 0ef8a5de0e5aaccbda2008a9f3ca02ac3b9824c62648b7e9481fffda9c429321

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 37dac2a3ea35da0375b3f19d488070b8f8e4eba4b243e66f3bbf4056e887c411
MD5 bd7b577c76f9d7e70d0cc6d653227744
BLAKE2b-256 a99c75ffd2b549b94ce916e83cc25b94c37f0656ff5df012c9dbc875b6a74c34

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 a28d5bdc89ff4c0ecaec51e83d0cdc084156727e8f0505bcbb9f25c7b455c1f3
MD5 eb22da3b5f0448b22f3e67ab92f77bbf
BLAKE2b-256 d3d07853e9748b3fb90851a1e4017098d11103a278a4e0f4631ddfc7f7164b76

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp37-cp37m-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp37-cp37m-win32.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.7m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 642cd1122ead198518cf4f9675274d1fee563857350051802ba5ce76b60abca7
MD5 750e915cf22453b31877b74e80fb3c29
BLAKE2b-256 e998129edc82126a6ee02808ed89e4a788091a8341aa15a8f5f1e2b54ba67657

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fa12cd8075a0223cc4a89859e46b1b8127fbde2c6d44a75720fca91d83f9433b
MD5 c7f77bff5d0eb15f7c51359789d5ab47
BLAKE2b-256 786705eb99c142aaa9229735d0d63cbb9a6e9cee7400108ad4094a83f2fba1ff

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9eb91dd17b948e12b87406e8a33503d36ed6d054a856d63c6b731ec73a80aecd
MD5 ad7da58e112091a20e9a32b0ce401eac
BLAKE2b-256 014174be19c6f6021dc8f112d32473d99c67436f6776b3e870dda04574abc2ea

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 dff30cca066033f8a48e5e75f9a833b3d4de481a66cbe2bfe1ed9a824691385a
MD5 dcb7710d619e43a4c543c70521dfcf6d
BLAKE2b-256 c54e0fc350dad5cbe7c5aac9b4a35f9ed440a1cf54301ecc8462f3efd6549d7b

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp36-cp36m-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 5afe6a5f6905334e06f21c3a1284427289fa333b19ae87fd932ebde01b7d820e
MD5 05aac2c5526ae602954d3283e8614a2c
BLAKE2b-256 61230e7bf2d776fc87f0e7ddc1923c9f366b793b38296da2f5bf940d622f8fff

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.4 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 2267737702a0bdb85e328108429ea79bb1c392e01f3589f5e12e10c02e977b17
MD5 e46e2e8693bb42935879d785cbbd2562
BLAKE2b-256 6bfd09f243e687ed7c4330d361f89892d878aabc5ecd9567b2232d9ffb09449a

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.9-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.18.9-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.6 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for PyMuPDF-1.18.9-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7cdae7822754526a5401b10ba175f8979c62711a6b10610d88c8e698e5be9ffa
MD5 19e5bb5ae1d851dbd4dba09c6e47e0fc
BLAKE2b-256 6d247ce26fed68795893b0c0184a7ed7501e91f7c5813e6c4a32f53f08072458

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page