Skip to main content

Python bindings for the PDF toolkit and renderer MuPDF

Project description

Release date: August 8, 2021

Authors

  • Jorj X. McKie

  • Ruikai Liu

Introduction

PyMuPDF (current version 1.18.16) is a Python binding with support for MuPDF (current version 1.18.*), a lightweight PDF, XPS, and E-book viewer, renderer and toolkit, which is maintained and developed by Artifex Software, Inc.

MuPDF can access files in PDF, XPS, OpenXPS, CBZ, EPUB and FB2 (e-books) formats, and it is known for its top performance and high rendering quality.

With PyMuPDF you can access files with extensions like .pdf, .xps, .oxps, .cbz, .fb2 or .epub. In addition, about 10 popular image formats can also be handled like documents: .png, .bmp, .gif, .tiff, etc..

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 MuPDF first and then build PyMuPDF from sources. 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.16.tar.gz (327.2 kB view details)

Uploaded Source

Built Distributions

PyMuPDF-1.18.16-cp39-cp39-win_amd64.whl (5.4 MB view details)

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

PyMuPDF-1.18.16-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.16-cp39-cp39-macosx_10_9_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

PyMuPDF-1.18.16-cp38-cp38-win_amd64.whl (5.4 MB view details)

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

PyMuPDF-1.18.16-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.16-cp38-cp38-macosx_10_9_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

PyMuPDF-1.18.16-cp37-cp37m-win_amd64.whl (5.4 MB view details)

Uploaded CPython 3.7mWindows x86-64

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

Uploaded CPython 3.7mWindows x86

PyMuPDF-1.18.16-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.16-cp37-cp37m-macosx_10_9_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

PyMuPDF-1.18.16-cp36-cp36m-win_amd64.whl (5.4 MB view details)

Uploaded CPython 3.6mWindows x86-64

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

Uploaded CPython 3.6mWindows x86

PyMuPDF-1.18.16-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.4 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.16-cp36-cp36m-macosx_10_9_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16.tar.gz
  • Upload date:
  • Size: 327.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16.tar.gz
Algorithm Hash digest
SHA256 b21e39098fbbe0fdf269fdb2d1dd25a3847bbf22785ee8903d3a5637c2d0b9d7
MD5 80ee0d75b3218e6db865fa72629d8ca8
BLAKE2b-256 4f15f656c213e649f001a6922b750c4acbe30a9170ba1ac53aba0d4760811ace

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5314bf32dfbb98591df422d204978be0bc83eb2931e9b1a15be306290135a964
MD5 8fcb5f12c6101937c07e2832c88c71e9
BLAKE2b-256 f7044a7c4fe83d73593b566cafbdcfd71a22296868aaeadee9abdce521bc0bc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 ee66e2c8a4488072da35ccfbd3faef27c34b3c56eae02013cfde05a9d3f48b32
MD5 1c28a35548bd14285e65b6571ae4d6d7
BLAKE2b-256 2e32556888de7eaa35f35fed36536d6b826471bb549ed5e701e65e1ef98f9f6f

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.16-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.18.16-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 6025a5ae12ff9f5083a01023d431ae812f69ba3d836d6666910d4f48621c7307
MD5 0dae4f6ff64eebc622461c74b78aeae9
BLAKE2b-256 1ee87c314b2ac962c7f0b016ce6c4cf46f187a5378b025f5e1f17713065ab200

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a74a8e42d21951d7c78594fe0c2e0082c318f05370509eca84912f0f1be032b5
MD5 f6fed68015aca56b017ed15a0540ecaa
BLAKE2b-256 a6044247820bf23fbd47ccbdddcd9e0bcf5d548af23aa56932f1841c3ccff1f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c528e31cd4cd20559a59f98eda5b2bee9600f0c9a330e5e33cd39c1059620c61
MD5 258fcc3b06931ea11f8060033ea6af04
BLAKE2b-256 f69b0c40887f336d0b4c619d3cbd37bf2df3c8c8c3bceff3736717788e4296e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 50a6c67c9b171ae4aecb4bef0da91fed1b492f78c8ff12dc48bb8a3bcff378e4
MD5 e62394a75d49fe5a00a1302d3845101f
BLAKE2b-256 fd2205373c6d242a308a7bd99e4f2dbaca7e89b68eb36b27ad8e1205b7568de1

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.16-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.18.16-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 70a138c68025e30cae374fd765674522dec3103694ff532d21ef36d360dd985a
MD5 f4fde8d2d5c368b338074a8d8b411fdb
BLAKE2b-256 a4f6c6c87cddb2523f0ec0114ddf2b0efde9b05eda117cb28afb1932085012a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4b899f18e310d872936731c9d44042f33fdf8fa1a208409ef376e6eac54645d8
MD5 7bc9b70b668a9f0e12e8d522799a8eaf
BLAKE2b-256 95b9f76a88b3d5dc94939384e5e06ec51433862a9be62741c361af0bf7b64f1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b30169198d1d963274e4d48b86a04a091ec6ad5126d3cb3c506d79aca2427790
MD5 db80b5dbba00f5d3232838badc2b85ea
BLAKE2b-256 ed382f07f859344b26f7f21efc90544c64b1f001ecdb491f2246c766d0bfa940

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 f9132e9ecf405a5599ad9ab40a301406ff4e878556e272f6e4dfe0b0defb0850
MD5 6a9c8f03da1bf50a59cc312f665d3b8b
BLAKE2b-256 73b2815014657bcc66c5701e22350fef7ebb78b43befd62c7ffe9d6edcc6bfe9

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.16-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.18.16-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a3027097e271ea156c137d8a6ba733c3c5050ca2194748178257914121cff72b
MD5 35a3d5bb9095bbaf583ae1dcc270f1e9
BLAKE2b-256 1f02c07d52de308ca4cf5876bf8078c9cecd5618d85438d2c3cf5723a4ffe10b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ccbc068c0ce99a454536d7de9d2d5c73f0972915b0b9d9a3b601f99b62b382c0
MD5 9f6fd1e35f544e91ab0e788f01373c16
BLAKE2b-256 9cae1e26e80419e082c1e988c2866ce45dffb9a97f17f05988d80c527bbf368e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 c52912bfdf83bdd46e49aa0a7deb94849148f20fc113a816cc23376ab3e981c6
MD5 fd722e62a2ae4f7f46461a56f0225876
BLAKE2b-256 e657d411a69f9af5637a2dd18ac1aca5a93a7667eebb1c265cd50add6d00cf41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 b62a79d49b466ca05da0befce5cbcbe4d59ce946b00ab10651a94c1a5881a510
MD5 7c1f5694a4b3d6197509d530d4b91543
BLAKE2b-256 62fdef6e48e1a6acd66f145a39ae8815a0ec69258ebcb2974bcb959635bf8cef

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.18.16-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.18.16-cp36-cp36m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 4b9caba2de5b77f2b76906bf5b3d36e06dd93e0c4234cfbc59d1704625023b97
MD5 edc61c81144fb8ffc4d5d5fcd552d615
BLAKE2b-256 df6ca9b3e84ee80700dffad16d1e90e4d79cf3b1a6517f44b806604646761f2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.16-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.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.6

File hashes

Hashes for PyMuPDF-1.18.16-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ff8c1a13093cfa4af918b10d108dbe139c835a1e916e5a18f5bf234d469d09b0
MD5 e185698e161605eabdf170b765da31b9
BLAKE2b-256 543e9d230f1d13a80ae6518e7a4f846ebda08352f5d8898f854cc4355c3b626b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page