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.2 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.2.tar.gz (240.9 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.2-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.2-cp38-cp38-win_amd64.whl (5.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.2-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.2-cp37-cp37m-win_amd64.whl (5.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

PyMuPDF-1.18.2-cp37-cp37m-manylinux2010_x86_64.whl (6.3 MB view details)

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

PyMuPDF-1.18.2-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.2-cp36-cp36m-win_amd64.whl (5.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

PyMuPDF-1.18.2-cp36-cp36m-manylinux2010_x86_64.whl (6.3 MB view details)

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

PyMuPDF-1.18.2-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.2.tar.gz.

File metadata

  • Download URL: PyMuPDF-1.18.2.tar.gz
  • Upload date:
  • Size: 240.9 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.2.tar.gz
Algorithm Hash digest
SHA256 9eb9d1ab0fdf21634dbb76594f859abc933b5a7d678819472fd348aae6b37e30
MD5 ca2c50b6ed377094e681109a62b30411
BLAKE2b-256 9580fdd2f73b0b98529de5dc72baf3d8289671e9b6fbccaa50b5ad1c4fd28be4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0d7c6d8887bc146b442b4722184b27092ea3c3ca837103d04e71c1016cdb1a66
MD5 01b9a53dbc23eb247b51239cae2ffd98
BLAKE2b-256 7d7304ac354b31de80cabb8c7817145f8defae6a5cc6d2c832703d9e102009b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 aab1d8e2e53bfd2fb3c9ce9badb21431feba0fffe83479e74f363feef0e24d14
MD5 5fd9fefcc5c2fa0ffee681cfc5b543ce
BLAKE2b-256 6831aecfce6d83dcf5505d03a268251b4c70a8c29a764b859b545c27368fbdcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 fc3ae391f86b794dbe79c7bcc473dafebe9a326f75100ce01ba24711e0267d0e
MD5 fe2cf838f89b846f6c8f05f1e6dadc1b
BLAKE2b-256 7cca107ea08be8625670125980c35d84dd47551ba788bd926d46fbdff0a63d53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bf98e83982c453084fe7e15df1536534065380eb58977fe9f556d7985c1b8b66
MD5 b3bf50cdd896f8728a52e738c7d14da1
BLAKE2b-256 cd7e4af59926a188cbe2a5a4e18a3d158448eeb9eb18cd7ea2dc08112f4fd896

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2aaa3f3e17484447abedf76ca7dee5099f58b4b564f6a982fa120863fa674bc2
MD5 f2963f6b2cce2019c2252861eabcd7ce
BLAKE2b-256 1f0f1eea155821a80beaa802c6dc21a0dfa3c3095585568db123b127d186a64e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d4467f232502ebe6185b67baf2f29bc88258e6d97b89bbfa89dead6bc29593bd
MD5 bc3ff7b7341349ab95ea5311e912b957
BLAKE2b-256 047f29298d3ed55e7b5902676c9c98caf0792e36c2a813158c6cf61ee945cf6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 26c7792929846f68640fc304416ff5bc50a44e482448133f287c467e1498a5b9
MD5 282f53e16c6fe8e5236d9e91ff1eafb6
BLAKE2b-256 73e1c77fac332bf690fca49c24c4baea5ff18996f672a2b4b962e0110df4da74

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 8cc72e08fb60b79b5894531133c69ca7b9194c583852d9b8bb613fef46dac21f
MD5 55bd11eb39f89e6ef7f8ba492f148e9a
BLAKE2b-256 f53bcc4f09c91c1ba2012ed833c6ddfb7f32e030825f9be0f60b403c32eb4a25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 3a4207c9231fe655d55c6cf2e8ae11efebc43ff5f9d3667581d1b9afa43dd037
MD5 4b4bbdf8f63c11ed8e5e243770aa5c56
BLAKE2b-256 90213a1e1d9c4880e3f4c83cb352693722a5b70f13ea6095f35117a8aeab9cd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 6b4dbdf210f991f8f8ec2e48a3760cf4b2ecd1c1b76afc72f9821a9b7c5bdaa1
MD5 6e33b9f4f00f1b4ac38fe33e065f5723
BLAKE2b-256 85c868758517cf17deed8e9822a6750dbc99b1f6a5337123763fc368ae8836d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.3 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.2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 de68cc387037329b88662505316d752e040d112fc6c29be2aaba7de7a07e3f64
MD5 f143c00722db0eb214687ad4c94a983a
BLAKE2b-256 b532d9ef20ef5d1b709de0cd6aaa4063c122b6ef65c65e7e719ab40435d0ad54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d82f2ce32dd19012254b0f3453ad45a8e6947c294496a2b9c1c2d0044d47b138
MD5 c9112465db3a653fe459b13587bc3826
BLAKE2b-256 5b718487bc62cfa4ace36814f0097fbff6210e05db6e2995480c60d65b7baecb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 81843a85f7b44a6a18fe28bd802af84dd2027a2bc5d271b12f68e3e2c51be9a3
MD5 4ce5f68ceb384942719a17bdbc4f6b06
BLAKE2b-256 c46c0254ef059500c02f0d794d5fb47b5ab349846106affd59f8c417b54dea47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 ced2bd0d868e17a356b9e55a2aa0c05e722683c320cf50eda0875a4743edd32d
MD5 b5827afe0f143ba388341f5da2890654
BLAKE2b-256 0ea97d560bb8775b6270dfaedc84a5444f86cb0f26fedf616c732fd7f413b23e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 6.3 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.2-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 42de4eb3f9e6824588a5d823965213282ad890514bff3c131b30ac9ffc2259ea
MD5 71e5b645d5edfc987b416f3afae80ad9
BLAKE2b-256 41a64eb35955856b966add3b2232e4491643b3a9c6b83cb6c521d3f0b38b3aa8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.2-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.2-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5f2085457ae9283ba4edf08ac5d0cdd652f9dab243cf6b52e7f1c0f9c8e96b82
MD5 1f6f4367d2895677ef7b89f76c4fd46a
BLAKE2b-256 88872d31cb7edf5dcd59d9d7e7ec1f820aaa1703b4260b041b9c2126fe8191aa

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page