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.9rc2.tar.gz (102.1 MB view details)

Uploaded Source

Built Distributions

PyMuPDF-1.23.9rc2-cp312-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.12 Windows x86-64

PyMuPDF-1.23.9rc2-cp312-none-win32.whl (3.3 MB view details)

Uploaded CPython 3.12 Windows x86

PyMuPDF-1.23.9rc2-cp312-none-macosx_11_0_arm64.whl (3.7 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

PyMuPDF-1.23.9rc2-cp312-none-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

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

Uploaded CPython 3.11 Windows x86-64

PyMuPDF-1.23.9rc2-cp311-none-win32.whl (3.3 MB view details)

Uploaded CPython 3.11 Windows x86

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

PyMuPDF-1.23.9rc2-cp311-none-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

PyMuPDF-1.23.9rc2-cp310-none-win32.whl (3.3 MB view details)

Uploaded CPython 3.10 Windows x86

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

PyMuPDF-1.23.9rc2-cp310-none-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

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

Uploaded CPython 3.9 Windows x86-64

PyMuPDF-1.23.9rc2-cp39-none-win32.whl (3.3 MB view details)

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

PyMuPDF-1.23.9rc2-cp39-none-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

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

Uploaded CPython 3.8 Windows x86-64

PyMuPDF-1.23.9rc2-cp38-none-win32.whl (3.3 MB view details)

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.8 macOS 11.0+ ARM64

PyMuPDF-1.23.9rc2-cp38-none-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file PyMuPDF-1.23.9rc2.tar.gz.

File metadata

  • Download URL: PyMuPDF-1.23.9rc2.tar.gz
  • Upload date:
  • Size: 102.1 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.9rc2.tar.gz
Algorithm Hash digest
SHA256 ba6fdd907814acb968ce669f49b0c14ef9ef8b1e2d161829b7a31461aab04429
MD5 eb0b65eaa063c2417d89c5453e7c82ad
BLAKE2b-256 b4ffdb44303d60b8cc310a7187d500c7765b3b48aa113c86428d5d1c390b8fb5

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 224a37659efda678a3c7a0d47927936d10b30ca9efcbfc427e9bf2e3ce1c3867
MD5 7a95d22c2cfd0497c99e0efdcaee550a
BLAKE2b-256 39ef7c9e0ac9944da067ab5a88907d3d34bdf9345fed408786365539191a20fe

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp312-none-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.23.9rc2-cp312-none-win32.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp312-none-win32.whl
Algorithm Hash digest
SHA256 4ffdf3c59b9279c963ff8585b4c0469ca401efbc33c031d63f990d7301dcce80
MD5 9edbe7ad5c5086acefea433c6684fbcd
BLAKE2b-256 f335ff0fd4477da8344301d77802e7214e7629dbda08618d4e9f1a3a993add24

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp312-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp312-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e5af11c71aa8a4980427f5f3cb405ae0b0a9b4ce4182343841de50328615b3d2
MD5 9f371aca4912867a44e995b704af0f05
BLAKE2b-256 c5fad25d99a25e33cac560fbd51af9eb02605a6b68f79250fdb15d593c3032a7

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp312-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp312-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5f9e98ea0cdc821a154b188904acc0248941652d7ec4f8c0c01b15d86f0128f
MD5 8f0e062bc5ca4de416120c242cf91d93
BLAKE2b-256 c54ab6d18cef4e04d625d0a14f9d0949648a96267ad29f20f7021a2973faae59

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp312-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp312-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f7d17a942c710a0a6a95276d2fd30618bbf1ea8b342077aca216046ce286f053
MD5 57955aff9c92346e33497db687caef2d
BLAKE2b-256 711c83ce172a3385d7e8957554af8681a50a980812e9cc5cd8232718b2872a37

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 0ee6e8baf79f710068dd1f486c535b5fdff87e42009ec2afd69ca93b5d4f4901
MD5 cac50a3aeb06674b010c230753df5097
BLAKE2b-256 60342569fffe351e670894994236b1a46c855390522f3467751f7b37dd5d5ee2

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp311-none-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.23.9rc2-cp311-none-win32.whl
  • Upload date:
  • Size: 3.3 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.9rc2-cp311-none-win32.whl
Algorithm Hash digest
SHA256 dfdbf15a1100a7d76cdf284d7b6cde685355eda6aefce941c1c5741a8aa510d5
MD5 3d93cfeb31cdd0aae5922adf9f8b7d2f
BLAKE2b-256 740a03d1f3db917fc3e6be694074f528d579a439cc39a6daa53aff51cbfd767b

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp311-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 22d218361a378684eab373cec12fc1ac3a1d1738c23b6b47303230b0f60737ac
MD5 603c7394c791303379ec06537a651ad6
BLAKE2b-256 f656b14112772619a90d597d5a7821673c68c08ff3db62159dec60c3b49739ca

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp311-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp311-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f72ce468748250994b33288d0c6795febec211d63106d492b223071feb045840
MD5 2d15f65099ae7ea4bb2439badc81303e
BLAKE2b-256 0911e3fb2f25cbee991c5218fa45cebe6d277409f36d2724c63ff524e1ed38b5

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp311-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp311-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0711570d477a50d3e2cd43e59ececd120f4b5358ddfa4b49c3e56481c967bab9
MD5 d035849945d32d53e6b817495d1d3c46
BLAKE2b-256 dcb29d092bc6ea0c30d8d28bab1d3a86a535534b47d019bd47b25abacd88c12e

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 17c6dbae8ff718ced146ca84e5c05201e573b58e73f78850d1b8f7f0b632aeaa
MD5 68a140ae450cd208c444c8b0dbe79af4
BLAKE2b-256 9e95aef4c937f79ab9bb2f74d28185de4cd6c506dc8f6e358c9890d603e5121d

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp310-none-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.23.9rc2-cp310-none-win32.whl
  • Upload date:
  • Size: 3.3 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.9rc2-cp310-none-win32.whl
Algorithm Hash digest
SHA256 5b098bf2cdb33e300aafc42ad9c4e603dfedc2e3254eedaf10c76998b3353860
MD5 53e7d9083655db50e072f75f600372d5
BLAKE2b-256 7f08af00e1d31d06ee7dbffdf046f4d64f352e10211978d891537cc850cdbf18

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp310-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c35bf5154f0d33a15b2effdff4775543e6a19bad89024e0d37456cd0d5be35e
MD5 cda19ab088eca7e4c06ab88df762a6a5
BLAKE2b-256 42cbc833f46537d186438b069aeb6d7a9317d0925307729168713bd9f615775d

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp310-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp310-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c551cd976cba54b314246e2e7bd542c41dfcb6bec67f4ffe543fd81a0396715c
MD5 4013badb0897639054d8eb0f176efa95
BLAKE2b-256 e5dfdcd3da31926bb375a59a37a95792fb4816779d70e15cd8030a4121697280

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp310-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp310-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 214116b9e78aae0f3007b207d44a3e7eb5b247a1f329ed29571b32b5bfe91cd6
MD5 6d1340c4e34310185db77537f151b9f9
BLAKE2b-256 b1b99d8d11cd3b892bcd40a5885215f58ad265a78563d4e4386d836ca3fe3ca5

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp39-none-win_amd64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 ea89047f05bf29f89ff91e0718435e7cd087379f122171d7e1530b4d68201ead
MD5 2eddd98823336efb727cc29593084c42
BLAKE2b-256 0ad7071d54e1e64c05ebbc11e71c07f5ecab786cc600d19e861747b91c5d9b7b

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp39-none-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.23.9rc2-cp39-none-win32.whl
  • Upload date:
  • Size: 3.3 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.9rc2-cp39-none-win32.whl
Algorithm Hash digest
SHA256 37cbc394267bf440a7e4f07b3e711f76a1b4df94e1edd79b1f30ea5a6f281d66
MD5 4597ed092935f6d4fb2e6d7dab2ea9e3
BLAKE2b-256 0b101d6934c9a7e2652e0a0dde9e3ebed4c6a758d5ce5e8d603d272995708950

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp39-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7bde9cbb3e3d45a781a27c8ddd5e4480f3ac34c88e48223635bcf66bd5797cd7
MD5 21428119e200a3f5d480a639a2d7a730
BLAKE2b-256 9f548cf224c42c4382edeea0cf745c9de3593073932478aeda5067ebd52fe0b6

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp39-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp39-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 991be0fa299618ab706bb0a3535c5b13399dbcaca8ff9ff0db0a141f5263c872
MD5 4aed7b05bcf37c2acea1a33fd2d0921a
BLAKE2b-256 7d42c135b40be9d0085eeea0389cdd7b8f30a9ab65d738ae390597fdf30586cd

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp39-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp39-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 aa804d026bc30ac942c797ef8409de781a37ba380bc5906d4ff89e740577c951
MD5 9a739480e0388030f73f1592463bd4f3
BLAKE2b-256 8495d56952b800c8d394e786e3637bcb6f4c48e79884203d4b6b04155b872d7d

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp38-none-win_amd64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 db2a181ece33bb4e833c442e3d4820d02b200967efbc33738bb10068fa65350f
MD5 94fea16031751691621a028d864e6344
BLAKE2b-256 288d7bdfbd83fe5f976308cdb192f60f318c1ecbc776008c34adfa9d3dcaf2a7

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp38-none-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.23.9rc2-cp38-none-win32.whl
  • Upload date:
  • Size: 3.3 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.9rc2-cp38-none-win32.whl
Algorithm Hash digest
SHA256 3a04b2890955656e1498926699882d09dfa17be22511aa13fa9464ce551817d6
MD5 bdf84e7ac512c578d49f70dd31e5ac9b
BLAKE2b-256 385aa8cfc171548ed7f2560319e573dab03af797027748a26398b5e4799ff81c

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp38-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp38-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d90d1b52d1367b072b97c0b51affdf4f875dfccdd5927b81fc666988510cc18
MD5 29a62d34abe404c32bbbd1179a38a5a8
BLAKE2b-256 f1e4fd7805da4d6dcd82e5130e0e6b11317b2f089cbdb9bdb970d708b8479aaa

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp38-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp38-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5841341065bfcd753684189bdd484fedcb9a12ea007bac4604caf0fb5177fedf
MD5 0c901aa1625199787dd5df4ae985f12c
BLAKE2b-256 8b7fca31ba5df3594b54212376d351cc76df17f0b21eb85d1138f94fa97fdf91

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.9rc2-cp38-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc2-cp38-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 51cfdffb8a90bd3e29b158123efc593ed5a214ffe45bb0e5e0dfdea5cbd811a0
MD5 5baea5ca0e2cb71783cc77c1f485e46c
BLAKE2b-256 da08731c0ebc54a64759f4d012da33e3909392002acef98609f3d8adaff4fe87

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