Skip to main content

Python bindings for the PDF rendering library MuPDF

Project description

Release date: December 20, 2020

Authors

  • Jorj X. McKie

  • Ruikai Liu

Introduction

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

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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

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

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

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

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

PyMuPDF-1.18.5-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.5.tar.gz.

File metadata

  • Download URL: PyMuPDF-1.18.5.tar.gz
  • Upload date:
  • Size: 251.6 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.1

File hashes

Hashes for PyMuPDF-1.18.5.tar.gz
Algorithm Hash digest
SHA256 ab710e069531922c75daca7f9abcce86cf2d04c01394445b2b830b5462a144ba
MD5 db4e9cf0962fbd07de194f6fc58935a4
BLAKE2b-256 7b3a4a2705d4188814895cc01d012018ce21239c438dfd582c6a25da932999dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 de0a18f9f283bb9775a9e6c7ed364a37ce5dbbdcf0afb0c3a9ecf301a4c1cd2e
MD5 0026300ed04bfc5a597bd622f2657c9b
BLAKE2b-256 5949b6be208a412eebee73e5e0eea1b1a0369a60f1419030adb21d1c419dd706

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2a0fde5f94d2a8d5deb7ed97e3ded5a78a287e14522e3266219726ee5b821e7a
MD5 0a00d72a41103c2b4d71ed7c5b589d68
BLAKE2b-256 cf36f6723cce57b9a4d16b9bd03f33402aac3c963f6555ebc98fa77072c353da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 38b2cbd7c42025601d7cf57d92adb187862dd4cf0292eefd279ec80ffe9f30ef
MD5 02c9e09c88d3c268ee47682218402573
BLAKE2b-256 277b26d610e0d72e17524fa14db2eebe7c13543cd5fc8ed2d69f71685e0dd93a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bf55a95ef59cb7393fb1dcd0e82aee8de4036527ca1cf16ec8a3052ec22d11d3
MD5 139e1fe4a065ecde2b76634fffd407ba
BLAKE2b-256 cb491fffe54b2225096c6e64180d9d70a0a70bab3a10add13ad45dbba490e81c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 43f42f5cc9543255469fca484b5e6e6be9963bc691d3487c0516b075658bcbd8
MD5 f5ea84d78e04451c569a8ce41ed7aca6
BLAKE2b-256 4f0238c765eaf5a715126948418852590171a84afc9be4bf5ab14a6ed96dc7db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 bb691145720a72287489c2804e6bc0aca0c27592a26f8efc979cfdaaef224d16
MD5 5fedf7ac9c980aaf1a71f85731375f10
BLAKE2b-256 011dbdb8b257182008d8f8076b14b9557044cbb3a6cc67bbd0a18d1ae66da8fd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 9d90c4d83fe0639e9344311f32c4cb7bbd96ef6b0f80d48b2d878aa6af77276a
MD5 9326d90a0b754a8bb85691baeeafe49f
BLAKE2b-256 56a7230510ec64107d1c727705998ccd8fae61b8198d47e10a8314230109090a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 055f96f407ff46428bfa30c12a72cc94dc07d694f2debc1ae86319afa7c19952
MD5 a933d28aafbcd6115d9925998e9c864a
BLAKE2b-256 a8b15b2f64d50faa741a290bb3386cad70f73ea7ed2ca102ecc68e1540cf8a09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 90de33c2c425d7bb15badb01073aa0610950725c96d4a8439c001ac5ffa7aa94
MD5 cd987796d9aed675c3d78d2e3ebfd34a
BLAKE2b-256 4c5db430fb6c0222dc91d03e2ad2e2e7e7979451520af6d15064a550e1804319

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 97e1349cf7f2f581906563ec0f020c92b02ae364f07daf72b028d0042432ba68
MD5 f435d7b99fe9e011f17bb5babced45a9
BLAKE2b-256 0e1c07a95e43baee503e50093652e3e857403091ea525592d649bed3e932a2a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 e3ce406e95b8cf49bfdf7be15a9ba67d210982b3358c5451bf02fdf389bc5f02
MD5 1e289248f4153938a663e096ec7403b4
BLAKE2b-256 85ed1e088de7a4abcb68e3d72637bfa0366bd04e3614d15b080de7d1626aa95a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5c84bb30dbefbc03fe95cbcf68045e1b4b39c7de713e84bb14fdab7b7a082448
MD5 94475a12fec54b9b3fa34a72024d5f7c
BLAKE2b-256 5c9be0172dc5359e4f1f82bcab79b79e4e196d10048321728caeeafbe1477697

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 abec339f8d19ebbc115638e867a6b8af2eb02956fabfbd3c23762e0a29e67a9f
MD5 e079c49d4df18a4ab6727a7c6529ce8a
BLAKE2b-256 0486822e8adfd50412b6bc5468e512cfeeb33f0e1277e8a1ae24dec4bb05b314

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 7ce1639ca0d2c0dba08a41499798c5cf05fd475a2ea83a16a6b5e4eefb44ad69
MD5 61993e6c9d78bfb47a1474316253ef53
BLAKE2b-256 ad2454770a5f040ef5baa809f4af563f0e5efda946e2f93fd0095cd508b1fbae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d085480542e873b746972af7ff07148e3822e626815212c92180f4104044d891
MD5 798da88a19a46043f69098ecf560d738
BLAKE2b-256 3122d59001c1d7df4a1839924c0ca67a3313cbcdadb7a14300f7079440f66c9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.5-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.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.1

File hashes

Hashes for PyMuPDF-1.18.5-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5317389463a0b05ca929011b3915e9a0b79cf7bab21a369073697bc3c6bd9216
MD5 e05f2d8d7edfc5f7d286c3d2a5fd8cbb
BLAKE2b-256 62e854f35f7b66fc0977730b665b787992265b52ecba9bef1b287f2eb7f2906d

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