Skip to main content

A high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.

Project description

PyMuPDF

PyMuPDF is a high performance Python library for data extraction, analysis, conversion & manipulation of PDF (and other) documents.

Installation

PyMuPDF requires Python 3.8 or later, install using pip with:

pip install PyMuPDF

There are no mandatory external dependencies. However, some optional features become available only if additional packages are installed.

You can also try without installing by visiting PyMuPDF.io.

Usage

Basic usage is as follows:

import fitz # imports the pymupdf library
doc = fitz.open("example.pdf") # open a document
for page in doc: # iterate the document pages
  text = page.get_text() # get plain text encoded as UTF-8

Documentation

Full documentation can be found on pymupdf.readthedocs.io.

Optional Features

  • fontTools for creating font subsets.
  • pymupdf-fonts contains some nice fonts for your text output.
  • Tesseract-OCR for optical character recognition in images and document pages.

About

PyMuPDF adds Python bindings and abstractions to MuPDF, a lightweight PDF, XPS, and eBook viewer, renderer, and toolkit. Both PyMuPDF and MuPDF are maintained and developed by Artifex Software, Inc.

PyMuPDF was originally written by Jorj X. McKie.

License and Copyright

PyMuPDF is available under open-source AGPL and commercial license agreements. If you determine you cannot meet the requirements of the AGPL, please contact Artifex for more information regarding a commercial license.

Contact

Join us on Discord here: #pymupdf

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.23.4.tar.gz (60.5 MB view details)

Uploaded Source

Built Distributions

PyMuPDF-1.23.4-cp311-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.11 Windows x86-64

PyMuPDF-1.23.4-cp311-none-win32.whl (3.2 MB view details)

Uploaded CPython 3.11 Windows x86

PyMuPDF-1.23.4-cp311-none-manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.11

PyMuPDF-1.23.4-cp311-none-manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.11

PyMuPDF-1.23.4-cp311-none-macosx_11_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

PyMuPDF-1.23.4-cp311-none-macosx_10_9_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

PyMuPDF-1.23.4-cp310-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.10 Windows x86-64

PyMuPDF-1.23.4-cp310-none-win32.whl (3.2 MB view details)

Uploaded CPython 3.10 Windows x86

PyMuPDF-1.23.4-cp310-none-manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.10

PyMuPDF-1.23.4-cp310-none-manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.10

PyMuPDF-1.23.4-cp310-none-macosx_11_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

PyMuPDF-1.23.4-cp310-none-macosx_10_9_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

PyMuPDF-1.23.4-cp39-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.9 Windows x86-64

PyMuPDF-1.23.4-cp39-none-win32.whl (3.2 MB view details)

Uploaded CPython 3.9 Windows x86

PyMuPDF-1.23.4-cp39-none-manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.9

PyMuPDF-1.23.4-cp39-none-manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.9

PyMuPDF-1.23.4-cp39-none-macosx_11_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

PyMuPDF-1.23.4-cp39-none-macosx_10_9_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

PyMuPDF-1.23.4-cp38-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

PyMuPDF-1.23.4-cp38-none-win32.whl (3.2 MB view details)

Uploaded CPython 3.8 Windows x86

PyMuPDF-1.23.4-cp38-none-manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.8

PyMuPDF-1.23.4-cp38-none-manylinux2014_aarch64.whl (3.8 MB view details)

Uploaded CPython 3.8

PyMuPDF-1.23.4-cp38-none-macosx_11_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

PyMuPDF-1.23.4-cp38-none-macosx_10_9_x86_64.whl (4.1 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.4.tar.gz
  • Upload date:
  • Size: 60.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for PyMuPDF-1.23.4.tar.gz
Algorithm Hash digest
SHA256 27576c523348df023ce703113dd5cf3b8515edc123a1b170acb32cf53fb984a3
MD5 bd2fbf624957dc06c9aaf1dce76c9bb9
BLAKE2b-256 7d4095ea8a2e7e97b185156247ba79a49a87f2c0863778368a28eb8edeb0850f

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp311-none-win_amd64.whl.

File metadata

  • Download URL: PyMuPDF-1.23.4-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for PyMuPDF-1.23.4-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 c51b92da8eeb62bbd4e3087bd2116cb330f4e1b001b61c0796310420a025dbf4
MD5 167d1f03c5dc3c142a3eca19e1abf3f5
BLAKE2b-256 f06d8b646ba3096cd5ccbd9714c367f9faca18fca072eed83f5622050dbbfde3

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp311-none-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.23.4-cp311-none-win32.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for PyMuPDF-1.23.4-cp311-none-win32.whl
Algorithm Hash digest
SHA256 f078715f50cc36f6ff787eb1d9bb243f903298ca1098a42107f36948d7039f22
MD5 34e8e8b071da3fd994f97d706970b579
BLAKE2b-256 495bfcf755128587eefa1233cfdbc983615c14827eebad19225e249d5f42f2f8

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp311-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 94d6d0c20149fe8d03beb1566689dd2923966cf4a80afb26dba2c1d862fb40c7
MD5 f07fec9463dcc8c50cb2a1e2360eb187
BLAKE2b-256 a9e97fc3f63951c52d9ac33d3d9b39b3b456e63406e70bc209f06123833464c4

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp311-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp311-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 4fd1aa96570f97b38d946632187344d2b9912bb8aa725797feb059c604045d48
MD5 21ad636453029e558d8a0bbe05d343d6
BLAKE2b-256 ee58a21be3382ef79b907d8a42f0b65e971786b6e1741ef8aae233eb441e3f2e

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp311-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp311-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ddd889d2cbc0fa48eca888b7abf3849ad9e3b695ff41176e612c5eecbd6e2d3
MD5 dea72406d1dc05e9e0962d77062fcb4f
BLAKE2b-256 24ddb2b7013c2a8a0767f8570df44e5818cd9e1450e2bd4b4d311ebbecb48d13

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp311-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp311-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 41f82394b5d44d12271b431968841d1e262e10d85ed580ee12cdb2c7b3d31a0b
MD5 a8a88bc0d29794512661e2e225567b9b
BLAKE2b-256 fe2ffa1ea71ef640be7326274c11eab0db878fbbded3a4ac89785c4a48268159

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp310-none-win_amd64.whl.

File metadata

  • Download URL: PyMuPDF-1.23.4-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for PyMuPDF-1.23.4-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 1aebdf3e584b33db06f0d0803d2bb17102784f054f17d06ef510960f28798708
MD5 3b4d44b96a57afa289ea572c3f0d5c33
BLAKE2b-256 d3d5abb60bf81fe485159f21eee2a36fab5a116c123492e890ce9df5cdb6fde2

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp310-none-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.23.4-cp310-none-win32.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for PyMuPDF-1.23.4-cp310-none-win32.whl
Algorithm Hash digest
SHA256 2f29f000fc29126e90be9c3192fe7ba9b23867fdda3d6133aa0c38851a96cfbd
MD5 6b7976c744ab8e93f8b9130673f2a15e
BLAKE2b-256 f9363629086531b9b5c954bd87531a16eb4c59fb5cd96141dff05737d67f4dab

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp310-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6e05947e9dd080c0ba66500461f9cdd052d3235893a33221626491bd13a1c3fa
MD5 430c5f4127467da9be6b0e40b618f8d7
BLAKE2b-256 b475748baa46746a4b2cb6dee2f04d8dca18b75c0163104fc809947ad1a9929c

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp310-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp310-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8cf61710d4bfd625bac3091341daa42ef0175d7ae9580d692b164b5b35d6213f
MD5 0b0cbef17a37ee64ec65d9c083727fc6
BLAKE2b-256 e539246a5cc32a282d319c42c355c139a8bbae2b660faac9c07a61963b06fd82

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp310-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp310-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4c7ecce30327603657ed1cbf08ce8cee75661679a626680d53299af42adc21a
MD5 256a1f40a9d0d373e2c149b4fdb96a1e
BLAKE2b-256 7e93c00b4259925c6a2cc752a28e349bc89795354f7dbb235255ca93a2ba7f2a

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp310-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp310-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d9024fb05dbb565fd4d3a7824a08a58f0363306d855ab9c63883343141757af4
MD5 b1df64f6136e5c7f1ea38c9b737d4b01
BLAKE2b-256 c891f015ed16499325792b6d83dc3f6cf384513c8d124d508f6f35b91234cee1

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp39-none-win_amd64.whl.

File metadata

  • Download URL: PyMuPDF-1.23.4-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for PyMuPDF-1.23.4-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 1d4031e0fffa1a55d42451ae3e0a3bbe0535acffd5caa0d636ca5f77e21149aa
MD5 9d37689f1fe369478f53d451e0b5b98b
BLAKE2b-256 9749d12508e7638ed1c9ab23af506f19330f7d0f1b5b3c528e8f95190b47db1e

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp39-none-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.23.4-cp39-none-win32.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for PyMuPDF-1.23.4-cp39-none-win32.whl
Algorithm Hash digest
SHA256 a42d51f8e8e160293b70c99874901f7b50df0f181b59f9c19abd18f008467088
MD5 2baefdb44ff005cf18e66c16a838cf75
BLAKE2b-256 8f511d0a6228cf58a4911507f1d32c6bbcb123bade209679ccbb4867ab21fa49

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp39-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a100f55d8c3278f844db56c9a6cf4e5cc340d88bdba7d02b597a6e6552974388
MD5 ac310691e109f1b943b9a5d44a7798bb
BLAKE2b-256 262ae7e99ba164d8c15b38f0f1a8db3268e607f0157c622f9318dfde0565e053

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp39-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp39-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 02c38374a2361699318b71e4677d21425a601036c2130305cc140c02bc2b7e22
MD5 00d82fe97efc960e51c4edcd645cdd10
BLAKE2b-256 383688ee5f21fa205eb31df4370d576d45912b37b571a47907aee6033b1ac0f5

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp39-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp39-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ca35f3b163c3f92a6c22b45ec31b3b850c32b3b76f31452e05781398c94e5ad5
MD5 4b6443fa6d78b3aaf8504e62c03147c7
BLAKE2b-256 88a12acd0af2772ba16e3d101ef1d681f3cdae6fca19b7314ecaf41fd2d8ba75

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp39-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp39-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 756bba7224d12f754afa9375577e61a9eae0213e16d8b98f0bbab43c3db92b71
MD5 b93bd9f899f1ad9fbece3e10c3088743
BLAKE2b-256 0b92a7d8ea7868ab8b6f5cd66568badc3dd4cb33003ed6f103756a317ad6a11f

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp38-none-win_amd64.whl.

File metadata

  • Download URL: PyMuPDF-1.23.4-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for PyMuPDF-1.23.4-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 cb5c43c06546e686fb5ce6438b5f8902ddae8861579dec2dd5ac92b91782cf89
MD5 361bc877bd9631f31ee1a418a12e04de
BLAKE2b-256 b6a2da9779b475b342ec4fa111c32f71d126a6427fb021b73901da1ffaf1aeca

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp38-none-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.23.4-cp38-none-win32.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for PyMuPDF-1.23.4-cp38-none-win32.whl
Algorithm Hash digest
SHA256 d77144b6434559929094f94de4174a12a2a0b540d88565dfaa18ea36f457bcca
MD5 e56b04fdac302dba1813d18bec4d2252
BLAKE2b-256 af90c098c7402e9ecfe9a4f7a94eea7830fcd509df32f05a8c5aed905e2a9d0f

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp38-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp38-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b4c9e7036564c2881ca07be3b7001f2c0910dde1e46e9fae58f9be7bc3cc04c2
MD5 a6a2149eb6ecdeaefcc573742447fe9e
BLAKE2b-256 4173a8ea17fe9700df1636f5f4725dac2b14e63e34b2315960d114bf7fe18ac2

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp38-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp38-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 31941d7b6beb13fce2ca33763985303da25fbb29d202a89def555572f917789c
MD5 60a4724f9e62335b0259c2b21c54c8be
BLAKE2b-256 cab6c73ea4281c09137cb85105ae9187974adc4232e617d8284eb23038c0f039

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp38-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp38-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3baf895b414220ebf302bbb3d8d08671bcb5e1173a026109f91e6801809134ed
MD5 776fbaa0f39918039b7f30a1191865cc
BLAKE2b-256 fbcc3de05c01d5af6d35b9be2085d7de639ac426c56caf24937039a2f167e328

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.4-cp38-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.4-cp38-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 817edc2c98040b9bce79b91c0fe8a8b1c9ba9ca3d504426d49cfebccd40c7b64
MD5 b1ace0c7de8cc226a2a090fa55fec06e
BLAKE2b-256 538250d5c5cd049c6682b54608940e98a0991f9802e64989ede572521d8f427d

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