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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.12 Windows x86

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

Uploaded CPython 3.12 macOS 11.0+ ARM64

PyMuPDF-1.23.9rc1-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.9rc1-cp311-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.8 macOS 11.0+ ARM64

PyMuPDF-1.23.9rc1-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.9rc1.tar.gz.

File metadata

  • Download URL: PyMuPDF-1.23.9rc1.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.9rc1.tar.gz
Algorithm Hash digest
SHA256 7376f45818037151cb5854486a6c17951d2a5a683ae84d5944a7c6cf6e7ae404
MD5 275a7511706201987f8c16c61819f48e
BLAKE2b-256 bb2f7f083bc0455c7c6697f19d93cb44daab09ef6719c84d2f4bf442548e7bce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 4a3e9a8de3ffbc25c01322e232e040016c49e10df211d616be89dc7c23be33c5
MD5 11b46b376c485bf0b8ec3919e2e91ce2
BLAKE2b-256 599bac32ce95811b3b380b154f7a62c9fe13a40ec89dc75d9d2ab5d732d5212e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.9rc1-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.9rc1-cp312-none-win32.whl
Algorithm Hash digest
SHA256 25c30d049180fafb81a74abe6b161120d4e307dd9b206609ef26e7603afcb077
MD5 fc1f1d49f1cd5087d850cfe5359c7545
BLAKE2b-256 19708567eaefe5a065db84e5ce352c23c83611305c14e02b47c2d1f67ebd0250

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp312-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 589547967980b7d48dc00b897ed7d62e8dc3400046d36ebf15088ca3e49c371c
MD5 dd0a0e31f965547f82436922bc6f59e4
BLAKE2b-256 902d1ed563a3d790baa90554c9edf16e1b7275bafa0108ea3e52f2a8cef65be5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp312-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 770b6c780609975b2062edf70eb4627f17815cec00ec2cfc0c77a5c98e069784
MD5 b439754386faa61aab2515673893c4a1
BLAKE2b-256 b18fd884fdd3c1c0035b020eb08ac12a7b83f0939c00c1b28293ac0d43ae6c64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp312-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3651633560c87baaaaa29ad4821d7cc40989395eb9d06e11b1c493cfe0ab86e8
MD5 2bc90fdce59a296a2ac2b502900a0d3e
BLAKE2b-256 f204c754f93bf89a14186a080cebdec4af061e920e4a2154227c163352ec1216

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 c919d8b2e2fd0a0d5b9cc5876c771197fff8060bc3b3403d0093e14b306d3935
MD5 989c0c4f43eb5ada3fb16400cf4de200
BLAKE2b-256 d92691c3e5ca7dd87101f4e0216229e2456d87d1a9e9074413cd434a6d6f7108

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.9rc1-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.9rc1-cp311-none-win32.whl
Algorithm Hash digest
SHA256 3aeaa9693f53ea5ba1ca0710d3fd0b7c7046cefcbb5f82e7e543a35b61427169
MD5 0220a90d606c26811a3d16a637b3c0c8
BLAKE2b-256 ff27fd94df21e03f8326d8b73c3c2df947f84018d35110d8cddfc7463e3c0ad6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0c32d0a2907f9dd4ea39e4dc405405c61d4ea3ea97840f846eb6ed869119b2dd
MD5 a351fb26fc4e91bea76c67a7c3732162
BLAKE2b-256 f12821798ba5b363a9324d412f5e21040f3162b50607d9383d6db9a57edbc9a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp311-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d69212f796021ef9e0f8e9dbe16e641f49562a69c9f2a3dee67de9e649c141ac
MD5 ca11f3a6eee6d0d50810171b4f34356c
BLAKE2b-256 680f0c77bda00eb83cc316879c14cd327339a190680c2efdb8c21726d219aa83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp311-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3fd497c7f485991c748a64f12a7b833e5573ce7b7d50c04d930581fd26d11539
MD5 8f45e9e277fa849162bc996c9fc8685a
BLAKE2b-256 b78fbcc13fb35577cad216812ba329f8707fb172ce1d1b2b4cc7072ec3ad587d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 163a64cd00ac2e48a81cf4c1510200d93c558456cce62ca41259fefe791a1149
MD5 bc7a8d5765b239530c4e4a35c0342000
BLAKE2b-256 4843a9caa91647138c4d9c11ad353af9f63d2c04cf1d8df37937049c90843eec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.9rc1-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.9rc1-cp310-none-win32.whl
Algorithm Hash digest
SHA256 50781a64dc45eccbfd87d985b5cc9f0f71b5a7a18fa67586566bd9b97e0b627b
MD5 e3ea6e9947c2199a5c22394da13270f8
BLAKE2b-256 5f16422900d0b17921dca6a4c0bd56c95e91d3d7d10c68018cf274b1ebd64687

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 58457b91a82c756cbc2028b42e04b0009284f0e7a2e91b631c6a7cf3c77bd731
MD5 1e04d5779bf8c737b925a578349e359a
BLAKE2b-256 80a04ebfb384765b9f30c1216b029562d499c438e7055192e8bf86cdcfcc3ae4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp310-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 13b040e3a4e322d1ded40e752b1d17d0a9e8c1e1db3858380852357a659d5f4d
MD5 e67c1889f22102ab702267d0a1aa36ce
BLAKE2b-256 380c123de1ff95385460906f600a1eaa7ee7652569b34fb4d4ccef88e7042791

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp310-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 05e5e50b7c34457e0148be7a39803f5a5ae95f72f8ea2270d7391b389210fff2
MD5 3981ac06114e0c43e942153df92fb6da
BLAKE2b-256 8cb2bbf148a483dc4e1604af0fd7142b24501eb7bed68bc844b9743e9c5ef99f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 e92f7aaba3d43cee5a09e59c4ba026ab9c44e6c779b1767b57faf102385a3377
MD5 123857a544762b18224180917073f6ba
BLAKE2b-256 43a2b1c30bb0f5c5a024c8e5d968d13bbe0e9d71929b5b4d99072ab1f67bb8f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.9rc1-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.9rc1-cp39-none-win32.whl
Algorithm Hash digest
SHA256 7475d5bb42d1c7bffa2a0b8f1340e96722d869bdefec4de66bb7851f527930ae
MD5 fc5a2c86638dbd73f505a4a7ac86dd4f
BLAKE2b-256 3ef3f609d52320be5ceb804eaa9e74e148ce8fc3386e82b3b51ca55a9bf2300f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ce87adc9517b2aaad37525dbbcc8bab233baf17514d1cc3ff05921fb646860a2
MD5 37ab77e33c0f431f5323b3aa6378d40c
BLAKE2b-256 5fd04f7f54660fedca76fc1f26e970ebbe4f6250a140da472ca60ff351328c7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp39-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34b0cc45f2034844035f3966fff9a759d91cdf7b62b665ff2f7b9c5eb30f963e
MD5 7b32d4725097092a5c91d0aa3448957b
BLAKE2b-256 016a25f3382f3313fd6e22db1ff3303c3f18413e26cfd44fc166c8aa3b7e5afb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp39-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4b4dfc9cc408c329843478fcc251ccea80acba821f526269d9fa74f96182e114
MD5 ffd77ee05fbd09c5f0c29708bb2c6ba9
BLAKE2b-256 5d465d31a862aba5fcffe5253d0eef9b4803d47783ebfda22f002c248433cbac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 b3ce7510ba0f5cf63b6b69e3f8f81a49eac468ab2521d3950b929228b7427b93
MD5 80c68076d7f35acc95f853128b11e14f
BLAKE2b-256 5ef4b1be2202c525c3e7a98483185e604a302e187c41f72966b010bf966a606f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.9rc1-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.9rc1-cp38-none-win32.whl
Algorithm Hash digest
SHA256 2b1b380bf30c08ed7828f0de3b10983f025c6cb4d1f9b1fe3f46e91c45012e6c
MD5 ed9f0ab4a5b41961df97571dd20fa9d6
BLAKE2b-256 55eb6c11f5c73cf263b4cff0d3611ab99e87c88090f6f094da67cf4894f422ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp38-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 82f8838e721ed6c45c4aea8353ff3493c642166f460cd0c5a88025315cc94279
MD5 58dc0b61664b9fc64a4bb3ac8cab7970
BLAKE2b-256 02c89abd5ec224f5d3c055a95eca5dfcf0030df7e4b6c5a1e390ba6261d27a5f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp38-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ee2f16f7da74390d5e65910ab10dda203551a2cdbeeafa116e89d8e7fd411a58
MD5 a7b29e7edfb459d41029e70fb3fb120b
BLAKE2b-256 141aac1ad36fff1d43efe48abef988230d174bddb40fd11778ff4d0aa2a408a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.9rc1-cp38-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 41d4d6cc12bf5772f05c4adc378e83200f72a43b49880798df3095880cf8a520
MD5 7ff94edc43646191f9920d728445efe9
BLAKE2b-256 897ad5e7b51edea24c85ee7e6a9e8571b9a0baf06d4c10f211446abf398486f9

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