Python bindings for the PDF toolkit and renderer MuPDF
Project description
Release date: June 1, 2021
Introduction
PyMuPDF (current version 1.18.14) 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:
License and Copyright Information
In order to comply with MuPDF’s dual licensing model, PyMuPDF has entered into an agreement with Artifex who has the right to sublicense PyMuPDF to third parties.
PyMuPDF and MuPDF are now available under both open-source AGPL and commercial license agreements. Please read the full text of the AGPL license agreement, available in the distribution material (file COPYING) and here, to ensure that your use case complies with the guidelines of the license. If you determine you cannot meet the requirements of the AGPL, please contact Artifex for more information regarding a commercial license.
Artifex is the exclusive commercial licensing agent for MuPDF.
Artifex, the Artifex logo, MuPDF, and the MuPDF logo are registered trademarks of Artifex Software Inc. (c) 2021 Artifex Software, Inc. All rights reserved.
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
Built Distributions
File details
Details for the file PyMuPDF-1.18.14.tar.gz
.
File metadata
- Download URL: PyMuPDF-1.18.14.tar.gz
- Upload date:
- Size: 318.7 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efe85cb80f79cc3f3890aa2ab82b962b8a999ca078e33e9bacc5d0be5c4656dc |
|
MD5 | 70d6c2232e531772bbe9a813044262f9 |
|
BLAKE2b-256 | 41f6dbefe3d6949fa81fb7bcac9141e4345330d272724718ac5a6af78297498b |
File details
Details for the file PyMuPDF-1.18.14-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31b5be360eca2a8e600f1b819f57320f757f7ecc7e6d50d19f80184367f64ed9 |
|
MD5 | 5516b37a9c2a092a6625bc9a00a307b7 |
|
BLAKE2b-256 | 06e020afee342c9045b0d99dcb67cf8bf95711fce32a3d1e726d3bc9a5a6ce88 |
File details
Details for the file PyMuPDF-1.18.14-cp39-cp39-win32.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7afaf280be531f2f73c82834bb9c04252675908610038af810fc39a934f0fa4e |
|
MD5 | 8717aa0772919067b4b18f8b506055ea |
|
BLAKE2b-256 | f17f5b1576cd28133c32e22b9f22e5930bb239e046ce19309b66c488bb40a35e |
File details
Details for the file PyMuPDF-1.18.14-cp39-cp39-manylinux2014_aarch64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-cp39-cp39-manylinux2014_aarch64.whl
- Upload date:
- Size: 6.5 MB
- Tags: CPython 3.9
- 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4ced75f187c63ad3c6119ebf73d901499479dbdbc92e61174b18fc452fefaa9 |
|
MD5 | 39aa75f9744a624215f8f2698a6249a6 |
|
BLAKE2b-256 | 470b8cc7e77abc701274fdf2f33dd8a0a23e04a22f04f259f4a0c3a23d21db24 |
File details
Details for the file PyMuPDF-1.18.14-cp39-cp39-manylinux2010_x86_64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-cp39-cp39-manylinux2010_x86_64.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.9, manylinux: glibc 2.12+ 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 644d664d63fae1b2f0031b38ceeca09bedb749023be62f8ba5ebd933c79efd3a |
|
MD5 | 02b30bfe20da3f07594e9c3c32c5ffe3 |
|
BLAKE2b-256 | c3d7f0fcbc153f197291dad80b8c020a4a564d518109119e5972873f6138c080 |
File details
Details for the file PyMuPDF-1.18.14-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4bb2817b4c11aaeb3aa79e0aca8861490fa82d27130cb683b30f6addb7ae31c |
|
MD5 | 84d3c1a9c32e7bb62134b98f22e58e8a |
|
BLAKE2b-256 | 95327da54fa64f7a5b54c26b801d696592c8e4d99484c977e3170415eb8c4c95 |
File details
Details for the file PyMuPDF-1.18.14-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45b7e8a79a9348dd11c821d3ac54f2b9d4a410932aa8b21773d82e96de639eae |
|
MD5 | 19c267e3e73f484ad320950c9c207172 |
|
BLAKE2b-256 | d232a208798198c58681fd490034af816e95159cd5ac687e6be3b8ddaf6e1b68 |
File details
Details for the file PyMuPDF-1.18.14-cp38-cp38-win32.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 862107f0ea0e507f0b03e9fbe342136887eb240eed4803077e58e2e0d90317e6 |
|
MD5 | 8a6b62eb6ece2b27c993f55e2f88e91a |
|
BLAKE2b-256 | 82e4d08e234122e33ab5b62432df05834b0666887668077d6b648e24ec2a7abe |
File details
Details for the file PyMuPDF-1.18.14-cp38-cp38-manylinux2014_aarch64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-cp38-cp38-manylinux2014_aarch64.whl
- Upload date:
- Size: 6.5 MB
- Tags: CPython 3.8
- 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02f974afd92474c5081ffd862a037d2cde70ff4edb4d040474259a11a3473df8 |
|
MD5 | 6dfa579c278660eb7c65f535f978e56d |
|
BLAKE2b-256 | 28569ae6ef955342ab8ddc43ba6728baac5f9baa3bf70c715d6433e7aed8539b |
File details
Details for the file PyMuPDF-1.18.14-cp38-cp38-manylinux2010_x86_64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.8, manylinux: glibc 2.12+ 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36f25539c2463ae383f449220c9e7f1fd7145b25387242947d6e2a1b8c8b5412 |
|
MD5 | 8e19d72b08e71a696feb7bc4f5c1dcd8 |
|
BLAKE2b-256 | c1170eb651ffaed19f23527be828797e8ab100bd93dc484b40444ff22e86e980 |
File details
Details for the file PyMuPDF-1.18.14-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbc934470cb1b579e84b21c4b23b9e46c526b0790cef2f5883f041db0450b9d5 |
|
MD5 | 0b6fe96bf3b343b971ed7053b0cf9534 |
|
BLAKE2b-256 | 4ff630cdf265e8eca270c084d6a2007f14b2449891497da07e085ce201ec38bb |
File details
Details for the file PyMuPDF-1.18.14-cp37-cp37m-win_amd64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6baecb6ec0b0d8676547bac10a9ec0ce1116baeb7d77eea55ef5ccf7545ea9d |
|
MD5 | 8f7ce148085c9f9aea9c7bf467081d61 |
|
BLAKE2b-256 | f51c987a6d9df1043a07fb47cd07e0b1508c30931bf4f49a466eaacf45237663 |
File details
Details for the file PyMuPDF-1.18.14-cp37-cp37m-win32.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 020ecfa4c1b11c6038d025b3bd2e2d792e8ab91281f20daec11f50f23b058b5f |
|
MD5 | 66f2fa8e499c631612ce87b67bf14813 |
|
BLAKE2b-256 | f1afa0f9bae3d60e477472d6875eb731be2b100705e84b0364f73d82eecf31b1 |
File details
Details for the file PyMuPDF-1.18.14-cp37-cp37m-manylinux2014_aarch64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-cp37-cp37m-manylinux2014_aarch64.whl
- Upload date:
- Size: 6.5 MB
- Tags: CPython 3.7m
- 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb5d72dca986737d19c9f574a2764a986b685a2cea89adb0905181b00409d796 |
|
MD5 | f2dfa2b89a31026df3b26b2514c458e6 |
|
BLAKE2b-256 | 8b590bc3a0626b531cd8c84af4d6a959981958a9a80ef15073564c4ce34ddc5b |
File details
Details for the file PyMuPDF-1.18.14-cp37-cp37m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66d8024c50b742d7db2f8f729897d86acc080c32034012b7cae83f926b3dc09c |
|
MD5 | 786518ce91a0548ca2b57c4d4a7b0d1d |
|
BLAKE2b-256 | ef4384a502a902f5045108b6264a054ea1b50b479f247879c7a66c0d190be44e |
File details
Details for the file PyMuPDF-1.18.14-cp37-cp37m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a474af4f9c3542e5f1a9f2a9a661adec471dc84da4cde32e955e80138b759c9 |
|
MD5 | f98a5b31a93f7c1e88dfd2a7a9b588c5 |
|
BLAKE2b-256 | 057340e7c0582f93d0b6f309582c97917e8bce298f6208bfc1d38c0780b840ad |
File details
Details for the file PyMuPDF-1.18.14-cp36-cp36m-win_amd64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0af1ed77d26fbd7a63cae35c062904a9f1d9935cd6652766c9585b97168814a |
|
MD5 | 34d8bb54afee8f7ac72541e52f60d9b1 |
|
BLAKE2b-256 | 9bfff81d85e24ccb25b9127e6aa86034183b38dc06ca27b2cfd6fec0840f7247 |
File details
Details for the file PyMuPDF-1.18.14-cp36-cp36m-win32.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b1af467b760e1ad98c955231fee770b4d315f7aba08d21855b79982c3f02a1f |
|
MD5 | 5f72ba16cf03781d087fb2817b3bd3b6 |
|
BLAKE2b-256 | fffe259eff1e837767a3b3db738471e9b52d9cbb229c3c64a6551ae191ce86f3 |
File details
Details for the file PyMuPDF-1.18.14-cp36-cp36m-manylinux2014_aarch64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-cp36-cp36m-manylinux2014_aarch64.whl
- Upload date:
- Size: 6.5 MB
- Tags: CPython 3.6m
- 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed6505ee996f302dbf45efed0a83fedb378bad9f5783cc7dda78f5551a660689 |
|
MD5 | 4c58f777a036698a78f842c153a96c6f |
|
BLAKE2b-256 | 04868a229a18b6dc24c029edb24a72bb5511f2a3fed349ef8094518679b34454 |
File details
Details for the file PyMuPDF-1.18.14-cp36-cp36m-manylinux2010_x86_64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 6.4 MB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ 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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1d7f06abb068095d86261b3804567707385b6b6e299c1966d6652e44b72d91d |
|
MD5 | 939b7aa4096b559d67c1678cd1c6493a |
|
BLAKE2b-256 | 7db833ae24bab990d189dfa54910a42e5dd161331d69c99f20b798288c88061f |
File details
Details for the file PyMuPDF-1.18.14-cp36-cp36m-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: PyMuPDF-1.18.14-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.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f095aff92cb3e130a4e4dec043535646895434a048e8baaff684df7d9129d098 |
|
MD5 | 734af2340bc84663a2b7e667d20dfe41 |
|
BLAKE2b-256 | d8d9a1163e15427b2e33843d8fc32e730da8d150a2e88f60853f6615df626e07 |