Skip to main content

Python bindings for the PDF rendering library MuPDF

Project description

Release date: October 7, 2020

Authors

  • Jorj X. McKie

  • Ruikai Liu

Introduction

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

Since version 1.16.0, 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 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.1.tar.gz (239.2 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

PyMuPDF-1.18.1-cp39-cp39-manylinux2010_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.1-cp39-cp39-macosx_10_9_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

PyMuPDF-1.18.1-cp38-cp38-manylinux2010_x86_64.whl (6.3 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.1-cp38-cp38-macosx_10_9_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

PyMuPDF-1.18.1-cp37-cp37m-manylinux2010_x86_64.whl (6.2 MB view details)

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

PyMuPDF-1.18.1-cp37-cp37m-macosx_10_9_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.7m macOS 10.9+ x86-64

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

PyMuPDF-1.18.1-cp36-cp36m-manylinux2010_x86_64.whl (6.2 MB view details)

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

PyMuPDF-1.18.1-cp36-cp36m-macosx_10_9_x86_64.whl (5.5 MB view details)

Uploaded CPython 3.6m macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1.tar.gz
  • Upload date:
  • Size: 239.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1.tar.gz
Algorithm Hash digest
SHA256 3bd06747aac51a61965cbc69fb18a3c3c7da16f7eed2a8cdc6c780b17fc74d8d
MD5 bd0a101c8eea8113639fcafa03c814b8
BLAKE2b-256 80f45830d068a860ee8d2cd91fb620bc74a501e04880c9ec02fa9dfc31de15e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 be99969699222a29d906658b3114a6cabdc1e54ec8a17922b4723cb1f667cb98
MD5 b5889726d64f5a73f2f7cb4fdcba1bf9
BLAKE2b-256 7f6c72935decade9100245b5c816acf2db8c9717a85c21b9954489e8e7ae059e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 db5cfe8874bee6bab9f1fad38286a93238cc14cd23533b6012f3763042db414c
MD5 079926d8da64d923a4da9dbf12ce3092
BLAKE2b-256 ad5d413c199108ca085a2b7c8782c5da0b313f3faae6e28b105013acfc6967ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.3 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 f7f1f971e2da2a7583730bd48a98470bc93232521637947a4ea2d0b995bc79fc
MD5 17026d993775be70e04d3fa0f26521d6
BLAKE2b-256 185212a4b135168baa2511f01aae42d95946635e9924dc1fb48fffe9e1dd4e19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ca58298860c4da4d4e1fc404f300affc76d21e547c429f1d18db5cd2c685eeac
MD5 4253bb8903c8261a4859e942112ebe83
BLAKE2b-256 099549bfaffb4fa9486a82dd8e142b060a383e1929aed9b35a77170e63e99a0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 94cea7828be6526c0d55845cb1d2d1575b5aef80a4673c7fe5f088ec553e9f41
MD5 35462be0fdf8a73d0f8cc68038be16cd
BLAKE2b-256 657dc1932185c761879a624d907e4db1c4dfb2ce8447d92d3525fa45f4c724db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 81ff3aef7532c138d2b8d2639d6a8dfbd3a7169bf0c2160767b65871b9b2f380
MD5 5a2696cd05b1970febdbc37a6bbe50f6
BLAKE2b-256 f135d0ef8e835be20d7509d711e0568a6d4480a61b0b5b683d213a9a2885f960

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.3 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 05f92068821672a0b806cdb0ade2af41284ce5a56fd16a6d21c5343277202d49
MD5 7f839951b8132fb59656194c21850d1f
BLAKE2b-256 3eaa200315a62c1d79ab4f26ba640edd962168804d726305e99bca93bbdbe0a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5298c7642a77f32e36da255da2d434b481ef46d8e6b8c253a8788effd57d17cf
MD5 8e85e0043deb92e8d5ea56412c73b553
BLAKE2b-256 25adb5c45eb5b34e6fa74f5e58011c6f908383af7c1ea64ca2f45092b210de68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3678bfbf7dafe40f141ce68e94472f48473a0f12461b1643a8544e7d65f0110a
MD5 710905689e64b387afdfef3317f021f8
BLAKE2b-256 1f0c15bc54c44f86f173cdb2002b53aa44369b7b6e346fe9ecb06c79c57e76b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 eae666a4934dd428fc4ed5e6793e9fea8b8ec8f39668ea4bb4b324f5ad67620c
MD5 875aee6da934e1057daba8032a4d2a7c
BLAKE2b-256 e158a4521329b859565160ad812696914f1945dbd127f5b2303457be9a0cb82d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4c9a5f42ef0f3829b5c75afc15d5a2d58b0a38a111c9deca348581facc3655c8
MD5 02d497e1cf85c36043a219e2501d4394
BLAKE2b-256 0daaad1c37103203ed6e5ce06a4c91f443beb5f81e0b2066570c37dec04de1e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 51c5f6b252dbd7e0b3d51cf7986a3791a0b5d60bb5dce248978ee165e1ad16f3
MD5 3039b428b24e79ad1673b7e1325c1005
BLAKE2b-256 5f9906843f2a2075d7ae0aafc0e78df07bbbb5d113fd8e5a2cd73d6a698fb847

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 483727b66f4f186b57407ca11950b0e4335c4858265e5dc87ae911dfa0185690
MD5 0975d3b380a5d648184f788988ac0b8f
BLAKE2b-256 57941efc8abaefbe0b79b5a21d25195bf74bcf9426826ac7f1ce56216fd0bca1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 b6cfcbcfe10d24018e219c7b39fb7f659e0d12c0931d5bf552ee307cb046b9a0
MD5 f4586aef89373344e280630126ea3aa9
BLAKE2b-256 91b86e615a8dfb763e438ea123ee1c2c3cc5222c8a3d1cd4f0e35d3ed7bf8044

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.2 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a3a03661c65e0087937e005595505a4ea784480f8c97680d2f9b001006dc6e25
MD5 e2538866455ad318d127a12b5b033be3
BLAKE2b-256 3f35c23fa3577fa00ac9f1520ff3a0401c4e8c3630e9988ea5d59742efd9bb82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.1-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.9.0

File hashes

Hashes for PyMuPDF-1.18.1-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0c5dc5a6dd7bc5693f5b5d9a5853cc54172f59e100a079196065697c0c8ca319
MD5 c41c7903685d8169209bc705b87aad0e
BLAKE2b-256 0d818cdf8302b3e1a6fdf11d480c63c40fd786550725542cf6fc8c402d0c7241

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