Skip to main content

Python bindings for the PDF rendering library MuPDF

Project description

Release date: October 15, 2019

Authors

  • Jorj X. McKie
  • Ruikai Liu

Introduction

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

Starting with version 1.16.0, PDF password protection is fully supported: 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PyMuPDF, version 1.16.5
Filename, size File type Python version Upload date Hashes
Filename, size PyMuPDF-1.16.5-cp27-cp27m-macosx_10_6_intel.whl (4.8 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp27-cp27m-manylinux1_x86_64.whl (5.3 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp27-cp27mu-manylinux1_x86_64.whl (5.3 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp27-none-win32.whl (4.3 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp27-none-win_amd64.whl (4.6 MB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp34-cp34m-macosx_10_6_intel.whl (4.8 MB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp34-cp34m-manylinux1_x86_64.whl (5.3 MB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp34-none-win32.whl (4.3 MB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp34-none-win_amd64.whl (4.6 MB) File type Wheel Python version cp34 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp35-cp35m-macosx_10_6_intel.whl (4.8 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp35-cp35m-manylinux1_x86_64.whl (5.3 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp35-none-win32.whl (4.3 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp35-none-win_amd64.whl (4.6 MB) File type Wheel Python version cp35 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp36-cp36m-macosx_10_6_intel.whl (4.8 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp36-cp36m-manylinux1_x86_64.whl (5.3 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp36-none-win32.whl (4.3 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp36-none-win_amd64.whl (4.6 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp37-cp37m-macosx_10_6_intel.whl (5.0 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp37-cp37m-manylinux1_x86_64.whl (5.3 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp37-none-win32.whl (4.3 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp37-none-win_amd64.whl (4.6 MB) File type Wheel Python version cp37 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp38-none-win32.whl (4.3 MB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5-cp38-none-win_amd64.whl (4.6 MB) File type Wheel Python version cp38 Upload date Hashes View hashes
Filename, size PyMuPDF-1.16.5.tar.gz (165.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page