Skip to main content

Python bindings for the PDF rendering library MuPDF

Project description

Release date: September 16, 2019

Authors

  • Ruikai Liu

  • Jorj X. McKie

Introduction

This is version 1.14.21 of PyMuPDF, a Python binding for MuPDF - “a lightweight PDF and XPS viewer”.

MuPDF can access files in PDF, XPS, OpenXPS, epub, comic and fiction book formats, and it is known for both, its top performance and high rendering quality.

With PyMuPDF you therefore can access files with extensions *.pdf, *.xps, *.oxps, *.epub, *.cbz or *.fb2 from your Python scripts. A number of popular image formats is supported as well, including multi-page TIFF images.

PyMuPDF should run on all platforms that are supported by both, MuPDF and Python. These include, but are not limited to, Windows (XP/SP2 and up), Mac OS 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 OS 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 the MuPDF library first and then set up PyMuPDF. 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, most of 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.

Specifically for PDF files, PyMuPDF provides update access to low-level structure information, supports handling of embedded files and modification of page contents (like inserting images, fonts, text, annotations and drawings). When saving changes to password protected PDFs you can now choose, whether to keep or remove encryption.

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 now 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.14.21.tar.gz (178.8 kB view details)

Uploaded Source

Built Distributions

PyMuPDF-1.14.21-cp37-cp37m-manylinux1_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.7m

PyMuPDF-1.14.21-cp37-cp37m-macosx_10_6_intel.whl (4.9 MB view details)

Uploaded CPython 3.7m macOS 10.6+ intel

PyMuPDF-1.14.21-cp36-cp36m-manylinux1_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.6m

PyMuPDF-1.14.21-cp36-cp36m-macosx_10_6_intel.whl (4.9 MB view details)

Uploaded CPython 3.6m macOS 10.6+ intel

PyMuPDF-1.14.21-cp35-cp35m-manylinux1_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.5m

PyMuPDF-1.14.21-cp35-cp35m-macosx_10_6_intel.whl (4.9 MB view details)

Uploaded CPython 3.5m macOS 10.6+ intel

PyMuPDF-1.14.21-cp34-cp34m-manylinux1_x86_64.whl (5.4 MB view details)

Uploaded CPython 3.4m

PyMuPDF-1.14.21-cp34-cp34m-macosx_10_6_intel.whl (4.9 MB view details)

Uploaded CPython 3.4m macOS 10.6+ intel

PyMuPDF-1.14.21-cp27-cp27mu-manylinux1_x86_64.whl (5.4 MB view details)

Uploaded CPython 2.7mu

PyMuPDF-1.14.21-cp27-cp27m-manylinux1_x86_64.whl (5.4 MB view details)

Uploaded CPython 2.7m

PyMuPDF-1.14.21-cp27-cp27m-macosx_10_6_intel.whl (4.9 MB view details)

Uploaded CPython 2.7m macOS 10.6+ intel

File details

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

File metadata

  • Download URL: PyMuPDF-1.14.21.tar.gz
  • Upload date:
  • Size: 178.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21.tar.gz
Algorithm Hash digest
SHA256 1126b7fc5f45d6d61cfd3a7501757b6e513fa9c7167f83d2e4b342270f6cb312
MD5 fdb94e75a0632090b3c3c7185df3d649
BLAKE2b-256 c9fc377ee94326c4582aca6e8dcf95da84c31d78d33c7ec14752b153661db55f

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3b93092ff1156abba36bfcc203c0ebf05442a2d229c03dea3dbec36738edee0c
MD5 8493a740061e89fc11c837fddff58b51
BLAKE2b-256 f9f77aa8f1070ec00fa064ade26eb2ba9c50495ad2c3debf350ae7b3e3c172f3

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp37-cp37m-macosx_10_6_intel.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp37-cp37m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.7m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp37-cp37m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 092481bb4ac1f10f3dfc2c842d4d80a022823a0c28b4e428f89378cd79b1ae93
MD5 8ad04ea51f4152ac55109384ed99a393
BLAKE2b-256 0249ba45b73c31e0a9531eb96862950bf0f98f75d634bf752a62f037b1f804fc

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9496c9bf162e8e1151571a1387b32b1f0d57fd6f5ec6dd49a168fe9e2c7d5058
MD5 ca501f8fd6b00e53c1310d7d243415a1
BLAKE2b-256 184956820594ccb74546f8ee9009a9fe0241dc875aa5ed60459bee773d362fbe

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp36-cp36m-macosx_10_6_intel.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp36-cp36m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.6m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp36-cp36m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 230d039aa90387ae3c8f2d3a4071cb89cb1ebfc4e3df6dd669528e09bd0b30e2
MD5 014633f80c9f4b93151bb12056e71ed1
BLAKE2b-256 823c5d8770a7e7b77502e09e16e70edf4148e43d2a1fb57258ef4cf22b534675

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp35-cp35m-manylinux1_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp35-cp35m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.5m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp35-cp35m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 ba677fc6f27d0dd37d73b4a5b00d0738fd2d3af9ffa838372e79a7d9ce811aef
MD5 09a41b1faf0ac601f294d597c840e443
BLAKE2b-256 50251e44006672398364fbc1348f51e097296c73235bef8589660d4fcb1a6bac

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp35-cp35m-macosx_10_6_intel.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp35-cp35m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.5m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp35-cp35m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 05b8c405ae8a60d792af1340a3c9fe32a2fb0567a2e9b9eeb85f0ba906f77e4c
MD5 2795a889bcb6b38dfd05d899216ed34c
BLAKE2b-256 a738f9100fc5ddab75ad31f17474897320fcf360230f18419c9d090ec646fd4d

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp34-cp34m-manylinux1_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp34-cp34m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.4m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp34-cp34m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3e4ad58b6dc2c937139b1e0240a9a9de8cb631df6dac65f6dff4bcb08f61a1ab
MD5 aff97dc5671d3d520fc34a8f247b5c20
BLAKE2b-256 e0c0ac1ecffbe2c71d573283c0c00326f638f80cf7821e25ef92035f3537c24b

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp34-cp34m-macosx_10_6_intel.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp34-cp34m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 3.4m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp34-cp34m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 52c043afdb8eff5e3fb37ae5e22594531ee9e3437bcbaf31edbc6c6b79d07e42
MD5 41a67c090e4919c93a2a7e26162a5ba2
BLAKE2b-256 bcb12fa0ddef5cede33ef13e33dc197fd0f032434c62d3f22a25e55327771819

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp27-cp27mu-manylinux1_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp27-cp27mu-manylinux1_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 2.7mu
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp27-cp27mu-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 95194f75cf8808a68b574e074570e0e63d2c8cec4c742aa278b15a5870559e44
MD5 a4e6d9a50ef5e433263abfcf75509199
BLAKE2b-256 22d33db04b72b16739463afbf11a83daec606619d86c93ca1502ceed58fd348a

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp27-cp27m-manylinux1_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp27-cp27m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 2.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp27-cp27m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 443448fc075a249ac2e25ae61530925528d259eda23382ec69f3d61b81744abc
MD5 d693a1a8a13cc45311c90bfd462c3fb2
BLAKE2b-256 84e559430b41b525f96cdc0ee6fd2370d7fe889d9da5c21cbfeddef33c7244ee

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.14.21-cp27-cp27m-macosx_10_6_intel.whl.

File metadata

  • Download URL: PyMuPDF-1.14.21-cp27-cp27m-macosx_10_6_intel.whl
  • Upload date:
  • Size: 4.9 MB
  • Tags: CPython 2.7m, macOS 10.6+ intel
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.7.4

File hashes

Hashes for PyMuPDF-1.14.21-cp27-cp27m-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 f67790fffd0d666a18fcf59d6b6ada6e0a42bb4f2dc52fba7a5e10b3492be26c
MD5 272c4c962f02684cd0f4c7b4c0280d0a
BLAKE2b-256 9645a087927f9484e977e548b51260b2a7f1ca7224c09c3a8d5693e62f7f4a06

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