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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

PyMuPDF-1.23.1-cp38-none-manylinux2014_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8 macOS 11.0+ ARM64

PyMuPDF-1.23.1-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.1.tar.gz.

File metadata

  • Download URL: PyMuPDF-1.23.1.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.1.tar.gz
Algorithm Hash digest
SHA256 34cac956024f1a30f5204a1a987d7b2c8d4b2b5df57806b82c2842e3e108786b
MD5 34bd4a25ced423afa754dd4465a23cb1
BLAKE2b-256 37cae17a4ed9ea88d4ec71f78436dd85bc04e1dc8e72cac98ab49c27c7a63632

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.1-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.1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 55109e3c49f7854e2a471ca92bef5e5f8324841474a3074fb03bee99537d11cd
MD5 a64c91cda0ed4c2541a88f825d8d1455
BLAKE2b-256 aa4d2a61494dddccb7d2df09d31e47ce138d99897a5ed3cc007c7e869619d30d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.1-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.1-cp311-none-win32.whl
Algorithm Hash digest
SHA256 245ba657c3f8e39a7e2b17ede676f8519031f70f11963cb1f39b76c00aace3cf
MD5 a77b2c4cc22bd0ad1432ac770be207a5
BLAKE2b-256 cecad5c2e550a220ed53b31235c4c2f11848caaeefcc1caf7433fa8a22cd1906

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8ce4dcef3df3c959053a5f35df8dd35c9272cfe5fd3df54039ea3e270a9ef69c
MD5 0a12b1ecdeb952c265438cd04e60e688
BLAKE2b-256 969dd024b81bdfb01411b924a9924ba1ad40d16ec86882481c188f9ac9604b50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp311-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 322ef02cefad4c705461d64a89b33bf95147958277fd422206c4ea32323dc89e
MD5 0602649b13398bf600240414b19a5d20
BLAKE2b-256 39827970dac71094da002356c95cbb5bc68bd5a2a710e2f776b182001c72c39f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp311-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ead3422bc17607e8e174e87b9d66639b10f5649fbb55c3cde13d0ba937e9c9f8
MD5 379bf3bc73e20f7c96334ff897694a57
BLAKE2b-256 d5235c6eadf37c27bfdea4f297fd7b4272b76de958c993411ffa2a74b4c0af8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp311-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 08b93208eaccac85a78b7aa2b3020645824fb97dda2ab4f6d3a07290ac99b078
MD5 f28c93c03871c98e1de8605be6abf014
BLAKE2b-256 d505d12b2e83b3255ff1a51bae1e4b6775a83296237440bc15d382afedced990

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.1-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.1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 11af6e9e86e2a4ad1ecf8085bb64a48323614769188fbf5eaa5a198acef5de39
MD5 0efb0e532cc0a659203f1ac32cf0f5e9
BLAKE2b-256 f3de83ea2ceee1de4376b5828036deba42dc592f7a366f31a1a0c0dc9502c8a5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.1-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.1-cp310-none-win32.whl
Algorithm Hash digest
SHA256 0d709d3d7c9b894ad5400fa5037bf34e82133b3386b5f3f7bb60b16e9666a1bb
MD5 f98dea1787bce7e3240ab4f590b5c001
BLAKE2b-256 7408f4b6706b3436bc95eacca2833584b6018e2ee77eb1405fb1dab94a4ccb93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c8173a1b8c8539ee466f74263a7c6bdf1427b8f5dc32c66ccaca22222a89e339
MD5 2a266c22f8ac9b4bdee94c28def3bbc2
BLAKE2b-256 c5303e05dc36b923e10aee6a0b89a15d9f3c1703dc985674efbeefdbfdc094f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp310-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9216ca0805892b481be9544f3d3f9efbc06258fd26ba95295d540c2fa0ae0fea
MD5 f49d39f0c102530752c6a7d1a99aa9cc
BLAKE2b-256 724da9005ae175be228186db435d9db0a5a26ac016c3bdfa2c7af006fdeb6f3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp310-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a3a23857d655180f6147dbc9886f109e627b6654e37ba5088d1b038f6d7861c0
MD5 41b9c15b965827dc6bb9e2f08c7702fa
BLAKE2b-256 17539ba0295ea24b6ccf0e3b97f3715f1183325390c60d9e5087a7477947dff4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp310-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 eb85e8c8d5ceebe078206f779e5cd918919616e865e081fad3993f90159e61c1
MD5 283332ec0222d8aeb32abc76c82bf7be
BLAKE2b-256 6dd938c9fa4592ed42c21c4b623375a7d889bfaf79fa8562c52d84c37e14ecd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.1-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.1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 a3b2ce649b5bba352eebb4415529c81ec937595f751cc02079be2b314c5972b5
MD5 0ea1be818bb1626a60ad8ae7eac4f05d
BLAKE2b-256 57db98261210b2f0e3986c72f5a86e80e761b10049d5cb9541710d4bb295d8fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.1-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.1-cp39-none-win32.whl
Algorithm Hash digest
SHA256 25f554c861039ade6fcdb12cd17c942687e530afdfd337d72820529dc9bd440d
MD5 0d0bd59c78c2e6a89cc02537713a7185
BLAKE2b-256 f98ef0e0be493e6e99effe7295b2a7ef686c90f0ddf079e0ed1d8968450efd7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 74e20395bbaa5fd5bc815e5459f017edeb668ddf1ddf4f848f05587ec71b1326
MD5 61459c78636cc666262d6d87254d91be
BLAKE2b-256 c1f2b31c4c873bba6e4f40eabdbd9fe4cdcf020a86e32e57ab11bc1e2cd43d6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp39-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6ac7ee501ed13932878d52bb291ef7abf88e9bceb6c04144bd896cd079b193c0
MD5 80fc0af566de450d218e766215359d3d
BLAKE2b-256 9529cdfd5508b251e4e8b423c925ad67b628fa8c4d7ed4c610f73e33e58b691c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp39-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bdbf28e9ce255b8a221d1015f8a86810f70d1db45b6c4f90033fa8d8c2fb2b11
MD5 2c7797189adeb9151585ff6783a6856b
BLAKE2b-256 f52ac7b330fd851ac4a6f0a4439f41289ab3115ba916d512d59caa9d96fb431c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp39-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0d57716ff547a17365eed5f1485fac33b60d4c15776f041503b718834a9a8fe1
MD5 9e6dfefcf4b17da62f31513db40bf3c3
BLAKE2b-256 2bd9685c4d25d81fa93fb52b047071de89bf3cc105ca8b5450df8e34fdcc5686

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.1-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.1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 89d54dce9ca91f204e7f9cf4f91111cf6feede08f710259682f0f3bd2bc77ba7
MD5 3d47fb0f4beccbbf1fc5fe5d48107ba4
BLAKE2b-256 74e6e5a9ae52eb28f639365f10a0c83a579fde40520d1586cd178b668d8f28b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.1-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.1-cp38-none-win32.whl
Algorithm Hash digest
SHA256 a69279f4b85db33733eecb4cc42b1b959775b31f61931ae6de2b0d640ac82ad8
MD5 3c592570114c977397c4a2f3b7f8a069
BLAKE2b-256 116569f720fa24469183cc066287f69d61258c3b9d8cf65830231b8a5851de41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp38-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 756f24923bb28a8165f603ebe34ae72f951d9fc29ed7d72d8a3dad48001c19c4
MD5 9b4eef003222197933df182b7ff69729
BLAKE2b-256 8b01c2edc3fe8f313c7aba2432967bed7a74ba3f72a6a0622767b1f4498e5bc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp38-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 83db19d9d3b27fc14f66d222623a15b014db88f04682a33f9ed4054c31a65184
MD5 c977b6c231c641370e7060e8bed9b7a8
BLAKE2b-256 e4cd789cc0158f961e1dbb09ee71a1fb19c748ae5607f26d07e94bc71769ae88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp38-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67a442a2235ba82fb4b604e1f2acb023131fcb5be4263d615dfef10319b1d617
MD5 9d19acc6c1842c8fef66cf3ba7ba3986
BLAKE2b-256 fb5a08c28d18ef2efde523f62ab73fd5bcccd265ae0ce42ba04edab5936f80dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.1-cp38-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9f48302062e8d3d2440d197379a1ac9da201c78b2f80c414bccf7a0a4109ac16
MD5 c0b94f0e6b4b9a116a30e0133e5edca4
BLAKE2b-256 64789ac41293562f61b19bb4f9abcc46084835470b5735638abfd69851b49e9e

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