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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8 macOS 11.0+ ARM64

PyMuPDF-1.23.2rc1-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.2rc1.tar.gz.

File metadata

  • Download URL: PyMuPDF-1.23.2rc1.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.2rc1.tar.gz
Algorithm Hash digest
SHA256 64bbecd4e1f3c8d27c11e6de5c02dbba5337ca0453cfda09f546ca6a59de6374
MD5 969e239f727cce4f0928a282b451c885
BLAKE2b-256 6c88bf23f97d2e39b7b9a07a1f61e92578f0a1140bae7700be00e9b4b0651dff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 80b59af3fa746c38a5614d0cdbf4096198ab31e516739989dfb07301c3076f16
MD5 235190efa334c0d40ccc6a59084fcd31
BLAKE2b-256 336bcf898bf5210fa34ade7ae793033fbce19fafa660989ec29db4f404eb9b56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2rc1-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.2rc1-cp311-none-win32.whl
Algorithm Hash digest
SHA256 429d7916eeaf40a9ec22167d3eb616880fc1fee7a63014ded960a9cc11690aa5
MD5 67aa9a4ad584ecbb6950a8963980f68e
BLAKE2b-256 8cc9add4d1d22d5faf932ed6d6147a6e0afc92e32039893308a61d2ab053ab4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6f4dd6e0ce88d97e95e5d4752d9260f5c4244e0e74c695ce85b527f4a2fea91d
MD5 20268e34f81bea4d7d589bb3ee93f467
BLAKE2b-256 c5aaa87458e7f43493dfa0c24a8f0a545211ad4919545fc43e4f749a3b5ce7f6

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.2rc1-cp311-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp311-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 53c48e72b15c22e2b9876d43d1935c273081a05a5a5cbede6114e20b73883c60
MD5 f1c07887927028ee8a60c05507a8bb67
BLAKE2b-256 a7bafadbfbaf1a6ed62b4e26e3907636e4aa651733833eb089847a83dca0ee5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp311-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22c96a733bdd7bb4cbee362f06cb6bf67eca8b9da50804603a3b2e8a5b9d6a6f
MD5 ca667f483fec57a3a28227eff9043c85
BLAKE2b-256 4ca5d3f66f2728d25611fa898634f3ebbb7b10c02996f0c96eb27acd78f2f45c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp311-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0228489b1e78d00740f03dfbdb07021954c7e5f632a2cc9b3a4c0ce202c3d149
MD5 2264bb2d7fa99cc8246411263e066a04
BLAKE2b-256 10705fa98bd23a73a35aa1894dfa74fe5eb833045c7bed6a5f9320882c4d878c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 7fe8b939a962e24cca798f24b3a17af54055d0a4a7f06f21c9ae4c26f3095551
MD5 ceab1326faef2d32f28f13a1e0a70c7f
BLAKE2b-256 aebb4bf855f73a55063e20ef790a2cf1b0e1f568bcf20db9495120923335f5df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2rc1-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.2rc1-cp310-none-win32.whl
Algorithm Hash digest
SHA256 797faad2e548e4af4c6e54e640aa90b44720d690c968cc7108dfa66f9bb02036
MD5 254aa73fa8b6f9361fe260455d0cd5c4
BLAKE2b-256 09fe0580b899766afc25d39e673b7640fba46cbc48c69d9fa208eaecab45bcd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 15424440c2f3b396d0331fcb5350b157358178ecb3ba43bfcec4792f69b5827f
MD5 45377c98e9a80c669933be184f7fae28
BLAKE2b-256 b7035b7f4732230d8cc7cd3e90dd7f0da5495c08a8b2621cb312a822e5005d4f

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.2rc1-cp310-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp310-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6283f67fcf0134a9cf8a4761b3afe00a959a785e122b8b320d5c80e84868b327
MD5 9320ee7462544e2dc1e1f3be1d6ded6a
BLAKE2b-256 8dbac87dbc2cce0f37ad14ad358e723019ff52586f1348c926d167b6cb426de9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp310-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32bf02303b36a340e5628e1f9763d19a0a551afd90a0a9780ae6c1c34ae42270
MD5 d89bd132bdefc83b96228dfc5f12b53d
BLAKE2b-256 07af814475217c5f07ae36a3ae1d7371e1ce7b7ccd65839fc3f72398d545eb78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp310-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a04d4a3d70afc137b80e957c0dac1c78a25e6a0c41bc048f4da483b0f0384187
MD5 e0e44fa3d70a883ba8594b5284207568
BLAKE2b-256 97f0b3bb5e7e0edf2bb354546d327d2aa92457b03ff36b4cfd8417549aad37ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 408cd580209317ae48c56ca65d9cceb35774d54c6c91730aea77d8dd9acfc315
MD5 e0f2ecca2826b329f8e7d408ee85f55c
BLAKE2b-256 bb2c520567300212246e34c5c050bc4aa87421564e84d376bd15d459e94168df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2rc1-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.2rc1-cp39-none-win32.whl
Algorithm Hash digest
SHA256 869ce04247fecfaaffe992a7952206037ae86be9eacfdf55c4666d0b43f252b0
MD5 2815cb6dfc43864a9d5d54b5de856647
BLAKE2b-256 e02e5f6d29b05950d17b660d0e8620c4e7209111322eda7045451237946124ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2331d15b84163a18df8ce3dc826fce10fb20a07bb210d6b39d72f7bc4bedceca
MD5 07cc2170985eb715816364acbf9306a6
BLAKE2b-256 3a3c9182a7038f862a3de9daeb5e06d2d458fbf8d8408292a5db4aab56b88e80

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.2rc1-cp39-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp39-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 67c2d0dd3b6e9a9117e63d59f705fd830ea5482fd6403d439519c5d8eddec5c2
MD5 e7bf6bec251e568436f6eba4963ec1ae
BLAKE2b-256 cf606beca0e566120f7866f3b7eb3a20a89dc4bd855f8965648e3415c0452b7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp39-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a955c466f3ff954e01e64f36481d377b6c575ec6a36388e3922e836da01dd5c9
MD5 7d75454ecf230a37fe58b0d0549ae1b7
BLAKE2b-256 f8bba90584f5503232d410db769fc4f04e9ca0fbc1d39c78a526d89970dc84ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp39-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2d0f2a7eb1c7f1e5bf5f9ead1cb433a06152e70a11bc7e7a0e301218416145dc
MD5 90e1dd992f278b30ba1f73ccadbfffb0
BLAKE2b-256 7ae18491ec6fb3fda60a24786de58bb12aa35d718997a235b4e9734240d59cfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 4d18d49df03ff343b4555f63a4b8b3c44161ed7b7fff934a1c2e597f30da14a4
MD5 4e30e269a8cc484127e3c25db6fde709
BLAKE2b-256 01d4b1cd4d6515441e43f2c8842b8fe3bf03e1fce61abf84b4005a4903bcdddc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2rc1-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.2rc1-cp38-none-win32.whl
Algorithm Hash digest
SHA256 23b2b998337cddbd0a731ebc6c912c6bebeb9de46994607ee46a7d1b335bf031
MD5 efdcd5896509e489ba610f809b018814
BLAKE2b-256 5cffe4fbcd9f7f913b25b3a8af45076e5fffb224f06c82582ce4555fe89770ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp38-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b6c996939d04a007d7aa43a8831d136cf58233423db396e28dce1c8811ac83f
MD5 3bd0195b73013b60b2f9145091df9063
BLAKE2b-256 2f5970e453febbbe46b7eb253b92af29e7a2c7324cfa48c3578f8afae061028d

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.2rc1-cp38-none-manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp38-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7e59d0b9e4da61ae7f424f3125538c60862425c3309f201c8f83768c858b0e57
MD5 fb6c22f4ca4e03414dbbb6d82d95446a
BLAKE2b-256 d06d380b73229be9fabebb0cbe4b6ede144b8f5c0df56a74da6661b1cb5f1192

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp38-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d93047d3f8c2a28b11501adce73888aaf19afa0f44feee1b28d97acdb0644d77
MD5 4fcc970cadd1db48f06db3f924bad5a8
BLAKE2b-256 6a5da16dbd5c12c2e88ad84a7bad5d004daffccb121bea95393e4bee7728504e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2rc1-cp38-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1033049d310aaf75c281a76b27ce38c1128360bbc05ae33c9793e372109f9a18
MD5 19f91a26b8795dbdddcde0c1fe50f5f8
BLAKE2b-256 6d6b6268959be2d097e815566d38129c5293cf2041141254a77154d5076e3c18

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