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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

PyMuPDF-1.23.3-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.3-cp310-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

PyMuPDF-1.23.3-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.3-cp39-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

PyMuPDF-1.23.3-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.3-cp38-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8 macOS 11.0+ ARM64

PyMuPDF-1.23.3-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.3.tar.gz.

File metadata

  • Download URL: PyMuPDF-1.23.3.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.3.tar.gz
Algorithm Hash digest
SHA256 021478ae6c76e8859241dbb970612c9080a8957d8bd697bba0b4531dc1cf4f87
MD5 f5aa427fb3bcb3c7255ebd3f1d8f0152
BLAKE2b-256 1bf0fe24bc9a3866ab5941a569ae4701d3a2d38607ba7289b5519e618944de76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.3-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.3-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 e643e4f30d1a5e358a8f65eab66dd0ea33f8170d61eb7549f0d227086c82d315
MD5 1ec370e7c5e9e45ded4a45ede7fadc1d
BLAKE2b-256 6a0ed51380b83c40e3d1bef9c9421c5c20e2dbd5b123ea125c1a48b7cacd41a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.3-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.3-cp311-none-win32.whl
Algorithm Hash digest
SHA256 35fe66d80cdc948ed55ac70c94b2e7f740fc08309c4ce125228ce0042a2fbba8
MD5 618eacb9254b5ff74fbca041b4d40e3b
BLAKE2b-256 e82da0e779da505f1505890fd549892d4792c580737ab90c76716a499d3e2d39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0304d5def03d2bedf951179624ea636470b5ee0a706ea37636f7a3b2b08561a5
MD5 5e4a53eb2ac9886b71a58f0df108f32d
BLAKE2b-256 564415329796d0019724f9ae384fd630bc6a9d9979fc024322a5e89a93d2cc92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp311-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7218c1099205edb3357cb5713661d11d7c04aaa910645da64e17c2d050d61352
MD5 00499f4b5951ebf45bbbec58bc9e4388
BLAKE2b-256 233b98a89c0aee1144ccc3e9014fd9740b6b405884697b771846b7accf459c13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp311-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4dbf5e851373f4633b57187b0ae3dcde0efad6ef5969c4de14bb9a52a796261
MD5 a4c82c4e1d741921b9ce5eb2583ade9e
BLAKE2b-256 414d50f699e5e93d3e33d23b8b49c65ee8dafeba966167045195c7faa9b19fe2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp311-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0e88408dea51492431b111a721d88a4f4c2176786734b16374d77a421f410139
MD5 59ac0bcbc6feef015dd84c6787b4e26a
BLAKE2b-256 87ed81dfd6b64f2be61fb5f4ccafb814dc72d72eabbc9185c4a11fdd7655d917

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.3-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.3-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 0fd19017d4c7791146e38621d878393136e25a2a4fadd0372a98ab2a9aabc0c5
MD5 47af5f3c6de9aa288e2d53ab3bb3de90
BLAKE2b-256 deff0c16387c329023ab76d860329202a6c1b9c59291adfa4869f0fe16659646

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.3-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.3-cp310-none-win32.whl
Algorithm Hash digest
SHA256 f3c6d427381f4ef76bec4e862c8969845e90bc842b3c534800be9cb6fe6b0e3b
MD5 f088f7db7fe2a28015d7bebc1cf231cb
BLAKE2b-256 b84f791415310ec523a6edadbb9c00286adaad164fd97e04883e1a98103b32df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c7696034f5f5472d1e6d3f3556858cf85e095b66c158a80b527facfa83542aee
MD5 ad7a468f812245800ffb950f61bc2caa
BLAKE2b-256 1fbc3392a788fee48ac6869f4611df059bcac96374ff2b29bff814f90687e7bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp310-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5eefd674e338ddd82cd9179ad7d4c2160796efd6c0d4cd1098b5314ff78688d7
MD5 cd3432f0c0b670d61cb9007b464e37c9
BLAKE2b-256 4fbcb520fc3668a83bb708acae94e67862b9ec0176c2aabd86869f86a09b7cad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp310-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 95408d57ed77f3c396880a3fc0feae068c4bf577e7e2c761d24a345138062f8d
MD5 a79c78659b8838f5681abbe7ec9f3b0b
BLAKE2b-256 4b8964d83a2635f540d25bfc89582476c41b520950a4d5041034c3c067394fcc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp310-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 52699939b7482c8c566a181e2a980a6801c91959ee96dae5663070fd2b960c6b
MD5 99659616e948f43f2621f48e7f8c3fb4
BLAKE2b-256 72698c368b471005c95cb21fa730bdcee28d36c504e1f36c9680aaa8f2ed8927

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.3-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.3-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 7cfceb91048665965d826023c4acfc45f61f5cfcf101391b3c1d22f85cef0470
MD5 7cdef528a624a195e749e2e2c3e2a6a6
BLAKE2b-256 f8ff9d02fbe4a21fb1792c10f775b1920b89f366ce04a192a3a032c57027f5d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.3-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.3-cp39-none-win32.whl
Algorithm Hash digest
SHA256 f9a1d2f7484bde2ec81f3c88641f7a8b7f52450b807408ae7a340ddecb424659
MD5 808508330596573e27c321595ff677a9
BLAKE2b-256 d8d3e8b3b4f9e233f5d02157cf8e84f65656547dca170eda670ff78c6820f4e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 96dc89254d78bddac8434be7b9f4c354fe57b224b5420614cde9c2f1d2f1355e
MD5 b73006c5bf8c914e0838b08747941d69
BLAKE2b-256 da4fa2b9479145cca44d30706ac3612c6d8c6aecae962b85c833fbe0012b4050

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp39-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2f555d264f08e091eaf9fd27c33ba9bfdc39ac8d09aa12195ab529bcca79229d
MD5 1533ebfa571c8faf63cd50cb6ce20b80
BLAKE2b-256 c940f94f3baa517b162f0dbbf46193f2d039f94967fce6c4571ee24156aab81f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp39-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 640a5ada4479a2c69b811c91f163a7b55f7fe1c323b861373d6068893cc9e9e0
MD5 e0dbb679ae16e8203b8dba063c71cc4d
BLAKE2b-256 c2128121ad4d711857e277232023e75608a2c42652580d67331bca7a737675d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp39-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6329a223ae38641fe4ff081beffd33f5e3be800c0409569b64a33b70f1b544cf
MD5 19a130fea4b743b42be9fe0ef16446fb
BLAKE2b-256 31af08060336b73ba28265adfeb2b7bd62e30459e8dace2cf29945138ceadaa8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.3-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.3-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 a283236e09c056798ecaf6e0872790c63d91edf6d5f72b76504715d6b88da976
MD5 2d6524414da12a6aa0fb8047dfe6c2e6
BLAKE2b-256 ebd513220ee2ef2f740778671dcbb38a24ea6c3fd0e1c63d637bed654c52832a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.3-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.3-cp38-none-win32.whl
Algorithm Hash digest
SHA256 42b879913a07fb251251af20e46747abc3d5d0276a48d2c28e128f5f88ef3dcd
MD5 b0aff8cd47ed65dd88f6b4ce863bf24f
BLAKE2b-256 fc9875430563d66b9dde25bbf13b8dd25d237905e817bb78baaba4a0a9560666

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp38-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d51b848d45e09e7fedfdeb0880a2a14872e25dd4e0932b9abf6a36a69bf01f6a
MD5 836fcfcb16f0a5f3c6178e0eab631ece
BLAKE2b-256 3ad2a6042d0dc90a609e487169031f0af5d789acb01d8a8f73ba31fffcfe225d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp38-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6e4ef7e65b3fb7f9248f1f2dc530f10d0e00a8080dd5da52808e6638a9868a10
MD5 b69849014ed4b1a9a177548070b3c599
BLAKE2b-256 98ad05826d4e7a33cebba3d6a8002997c26f80ceea81d312db83b12088527a00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp38-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c06610d78a86fcbfbcea77320c54f561ac4d568666d621afcf1109e8cfc829b
MD5 e23e27fffd59d5c3b8b5a273116688f2
BLAKE2b-256 5b9fed1b4b4a8142970f0c7cbd311a8b035a4ff46dca04b8506dd2bf29ef0efa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.3-cp38-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 95065c21c39dc93c4e224a2ac3c903bf31d635cdb569338d79e9befbac9755eb
MD5 68d6188a43267673a25717e9baaa4703
BLAKE2b-256 cfebd76495ae395d6a1d481d78a52f59790874aca35608a502e4afe38609e627

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