Skip to main content

Python bindings for the PDF rendering library MuPDF

Project description

Release date: May 18, 2020

Authors

  • Jorj X. McKie

  • Ruikai Liu

Introduction

This is version 1.17.0 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 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 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, 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.

Starting with version 1.16.0, PDF password protection is fully supported: 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 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.17.0.tar.gz (197.1 kB view details)

Uploaded Source

Built Distributions

PyMuPDF-1.17.0-cp38-cp38-manylinux2010_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

PyMuPDF-1.17.0-cp38-cp38-macosx_10_9_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

PyMuPDF-1.17.0-cp37-cp37m-manylinux2010_x86_64.whl (6.0 MB view details)

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

PyMuPDF-1.17.0-cp37-cp37m-macosx_10_9_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

PyMuPDF-1.17.0-cp36-cp36m-manylinux2010_x86_64.whl (6.0 MB view details)

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

PyMuPDF-1.17.0-cp36-cp36m-macosx_10_9_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

PyMuPDF-1.17.0-cp35-cp35m-manylinux2010_x86_64.whl (6.0 MB view details)

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

PyMuPDF-1.17.0-cp35-cp35m-macosx_10_9_x86_64.whl (5.3 MB view details)

Uploaded CPython 3.5m macOS 10.9+ x86-64

PyMuPDF-1.17.0-cp27-cp27mu-manylinux2010_x86_64.whl (6.0 MB view details)

Uploaded CPython 2.7mu manylinux: glibc 2.12+ x86-64

PyMuPDF-1.17.0-cp27-cp27m-manylinux2010_x86_64.whl (6.0 MB view details)

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

PyMuPDF-1.17.0-cp27-cp27m-macosx_10_9_x86_64.whl (5.3 MB view details)

Uploaded CPython 2.7m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: PyMuPDF-1.17.0.tar.gz
  • Upload date:
  • Size: 197.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0.tar.gz
Algorithm Hash digest
SHA256 0de92a8fb65db6e661594cc5865a340a2daac3cb9bb58e030820769ece1343c1
MD5 7c56ff47b48508f917605c5a7c5ca87e
BLAKE2b-256 d3696c9fc1c0d74e72482139fc5f3129059c2164fca449ce36b3f0e7a70d4dd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.17.0-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 5a07c8287646ea5d9aeab69ae8d427f2018770f100e85e6f126f17aa5352d8a7
MD5 9b1c8130afc9755991290c4998a601c4
BLAKE2b-256 0259fbdb89b93b284f9eb1a4f1f8e33a4caa4c129c8f5256968024f6cbd4d59d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.17.0-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ad547e65ecbf89e061f6fbd11b570327c9d87bd84f2aeca6293fab8bb2a32f9b
MD5 4139a659301ea731923de50dd348dcb9
BLAKE2b-256 d403e3062f20265ce553d3d73d74ae36e21e80344bc3615fd18e630b99dff239

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.17.0-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 91d9b3a0b73938c2db7dea5b65da3ababfe0e5027746ac60691424ac6b5bb1e0
MD5 f9c66cb1679bd98a2d81fab6541bdf70
BLAKE2b-256 0b16071a5cf79189b85c199d5fc6766a8a2268c938773c66fc5c479eb2ed3071

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.17.0-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1993488de5915dfb99743134cab1bb580c8a1186541331c3804fd66c4acf30ff
MD5 b82b5d9e736da284ab37c8a7da42b32a
BLAKE2b-256 7e44e5b66737ec4c527a8f05f615345d65d8ea0a659706c81373c5d2a2a613ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.17.0-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e50307d5ded4d3336840e6e350f558ec65357aa0ae0742937ae188d1ea22430f
MD5 f0cee34f33ba875d79f5f834f209b366
BLAKE2b-256 418b4de031221b20cd8a9f69543c80084b34d23df277ec3263addeaeb5a1200e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.17.0-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 504a7b5c043b13dbff07ea2c285b5f663ee9834a96e08872b7be19587baef8ab
MD5 24836f5def06ebef7ee499f6a3f55b31
BLAKE2b-256 a3ebd22de1ef060a0ce93a2f2ff8b4e4c1d2b52aeea47cf353b774cda5e7aa18

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.17.0-cp35-cp35m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.17.0-cp35-cp35m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 607da91ed1e080e40dd608aec8c2dce78d2cbe490b74c866be3e43d80ebf695a
MD5 9e1baed26d93292cb3f67083ec3a9360
BLAKE2b-256 b69fb738880decec5b87b287afa6b65225527613ba1f1adfbeedeb9bf2d01ba1

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.17.0-cp35-cp35m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.17.0-cp35-cp35m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 3.5m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp35-cp35m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 11777d7a8321a3d91125b987e7bc8ee98417fe829e70127df3d44ccc31ecd0b0
MD5 6206f6b63573334d47cc0bc4a878e47c
BLAKE2b-256 d192b1541351016e45945e9e3fd3a05a980392365450e5c1cf02e922c0cb18f3

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.17.0-cp27-cp27mu-manylinux2010_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.17.0-cp27-cp27mu-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 2.7mu, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp27-cp27mu-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 19433257a99754fa21390299882404db1fa70fb666467bc468000010f94f7822
MD5 6abb2515f438eb057bb9f268437b1112
BLAKE2b-256 54a90c5c21221be61f97c6a1c51c78f775d8dc221299444e2a76f2e301b84090

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.17.0-cp27-cp27m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.17.0-cp27-cp27m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.0 MB
  • Tags: CPython 2.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp27-cp27m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 0f156bd7c5ddb80ab1b0c924a4cc37688ce1ee77afd9a13018fd3658a334d6f8
MD5 3e5fbca4784c866604b0f71e771b0045
BLAKE2b-256 cd5ea8123daec106cad2d7874e28a649321caa9d65d50cd1663c487d9dcd6e96

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.17.0-cp27-cp27m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: PyMuPDF-1.17.0-cp27-cp27m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.3 MB
  • Tags: CPython 2.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.7.5

File hashes

Hashes for PyMuPDF-1.17.0-cp27-cp27m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b17889270590fc7c7ddf6f9bb226eab1a8e299860af10638dd2e0c95df6e5acc
MD5 af5bcbddac97d700478c915866c7a324
BLAKE2b-256 cb18c27638d8857be21e249b30394c09e63a42f4a3a2af60e3554a4106e486a8

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