Skip to main content

Python bindings for the PDF rendering library MuPDF

Project description

Release date: April 10, 2021

Authors

  • Jorj X. McKie

  • Ruikai Liu

Introduction

PyMuPDF (current version 1.18.12) 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.12.tar.gz (314.0 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

PyMuPDF-1.18.12-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.12-cp38-cp38-win_amd64.whl (5.4 MB view details)

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.7m Windows x86

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

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

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

Uploaded CPython 3.6m Windows x86-64

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

Uploaded CPython 3.6m Windows x86

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

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

PyMuPDF-1.18.12-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.12.tar.gz.

File metadata

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

File hashes

Hashes for PyMuPDF-1.18.12.tar.gz
Algorithm Hash digest
SHA256 daf48e7a34ae25f0507688c350431e59d4207326347cbfcc767960c3039555fb
MD5 0a05d47a83d6086e0977ce59fbc2a927
BLAKE2b-256 025fed082e4202b811ae6ba319dba0549f9d5f0c84ed6b54b7657d01bb63cc91

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9a4e1e5b80b518480b9518b22b103a2947824ee39e0d66743c3b3ced35086523
MD5 9f4b37de234ffe517667c2673e59be75
BLAKE2b-256 dd63370f7d2d57e494994476038f233c33791c675416c1383bb1a7ccae270491

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 813c7be49208f224cdecede26aab780ba4814ffd1346ef2a4f740d413944b57e
MD5 63bb509e749a79539f9d34b380a72e7a
BLAKE2b-256 e655dfa2e57d7064d97b2aca57ee77cc6bb7ff03055bfbbcdbfd22e544413d94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 41f708d8e4031beb7b07853c1362c76d86991b2acf6d86167db093b91962364f
MD5 0287a9c2a6edd0b994ec5da9a424821b
BLAKE2b-256 9eb8d3be1f732007faa3d4078bbf7e40f36c48276758ca2b90d7d223a38925bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 819ec801866a11febf35045dbe0006600ac435d4cd5480d81074cc98b03ace4b
MD5 7b07c05df91ce392be0b389e28947be9
BLAKE2b-256 2c38dc94eabbccd60c0dfbcf04db2665c1698b2b2d5b00facd5f3ff60555adbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d81c3da49cb95bdd991a4abf6b5653501a3e597a89aa981ef1afddf9a56e88bb
MD5 6935b43a83d81eb5d5ede5e9575a3041
BLAKE2b-256 150a68ef06c723613e468d54f08569e100f4b6875b7d91dab7d05014f785beed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 412c130c30ee3723950a56cf58598657279fff164d7efbf358bb1a663aec42d0
MD5 b0183127496c17ed6471c3d06605c74a
BLAKE2b-256 5ab01742034c26dd2cce8c7551de14420265451ba2f2be415aa2cd335f666536

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 73f0f354040ebb7c7ab04f27993a08c8c1223ac63e2a5863d04ef8fe4b91cfc5
MD5 13f4954ba9b3d2e966c7aabb1f0573a5
BLAKE2b-256 3ac0cc7a64e6089f2401e53c9ace851e09969d6d013ebb3e3050e57a4801c5a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 08c0b1ce23537b6abb87e6e0711fb823507530ab246cb211ae67b9e418e18ae8
MD5 fa22f9c71e14aa6ee52da96ca6703d8a
BLAKE2b-256 6e2bf52a8aa2a2502fc235006cab08753c05e6f1515eafa8a2a11167b986efd8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for PyMuPDF-1.18.12-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 77554e5fd49342192ae12f11836bf355212c8711a4f38af22fc3090a039cf678
MD5 d1899dbae13664128c340c62a853ba78
BLAKE2b-256 e048a8d5e54a05a8552bed21b84e3ac0cf04e51e751052d9188712e987f3f751

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp37-cp37m-win32.whl
Algorithm Hash digest
SHA256 a1b5e2612d120c9c17ea803ed0bfc326228ce9b0be12d068a1a9704336d4e242
MD5 8d4404afb89b4be89eaca065dc38d5b0
BLAKE2b-256 bf00ac6b0028377c25e11e6b91dfa4c6a61a58b66b9dfd519eaaaaf418ba8cf2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 d2082f1e7728abc90ad69e4081d0aed4f75858f95c61ab91fedeb44f35a17011
MD5 a412705f7c1323ea6b8f7a516f7bc30c
BLAKE2b-256 3af43dfa60b77d8b2060c524958780fd085ef2ae91bfc2ba9a493df7d0abaf84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9fa9bcc6b6f0fce3f15426f3b9c2e1fd92643dfcd6ce24621339a33074405002
MD5 e7a622856934a9623753b0c7b0cd56f4
BLAKE2b-256 b3ebcf90eac8a8445fd864eec4067aca520a9f4d3c0b1baf197d25e4599d9b0c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for PyMuPDF-1.18.12-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 ba60a8ecbae946f36390ba32315235480a35af1a8304bc1927d9e36b87707b70
MD5 ec5dde289182485531f04d3b20853e58
BLAKE2b-256 8ed4dd5ff5bd6425787a542a349e365d89239c1ffed06e80c0140f29cb3f8fb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 19a228af7b9438bf59f1ec52202ac6f014202046dab182f82acb6efdbf6f9e4b
MD5 651d2618802143c6384aaf65e9e267c4
BLAKE2b-256 0de2e3153f145c83807493e66fdeb831565e16efb691bdb0e113ad5da806cd1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 742cb9bf84bd67d7fc8824c9fc69d8fb1eea47480749c7fd5dbcf7954df1fb9a
MD5 10ed9347ea100d2200398cb34f6e5533
BLAKE2b-256 7d53bb264b44010a585ea80f27b229946fc27ac9c216d47f44ea0f82f0a375fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.18.12-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/54.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.4

File hashes

Hashes for PyMuPDF-1.18.12-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 fc63949b63990baa4b738a151bc2d745e3b0d0bc0be5ac2e4fc14f4898d99a70
MD5 569f33efa92ae64b7f6b6ed6ef803fc9
BLAKE2b-256 df10041543b63358d938d496f8a7870a5db7b6501541a027c1a201c0e518ada3

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