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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8 macOS 11.0+ ARM64

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

File metadata

  • Download URL: PyMuPDF-1.23.2.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.2.tar.gz
Algorithm Hash digest
SHA256 32302d0eb0e28d60ba305f5d74702fb0fab2ed9d9f6b3a9d853429e5023bc6bb
MD5 299456a9b497a7996e0670c6d45083f6
BLAKE2b-256 5d346a0a64c04f46935adfc6cdfc2f658c6b81718c3c417bdc54881d9a1a0e50

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2-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.2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 1ec04285451231c68a024657b75d59a43ce0dcdade582edf3a9cc1d86c75b826
MD5 99ae040f114ce3a07c7e914d7243e945
BLAKE2b-256 73834e79fed4f447130ac82c0c989f9d05ecad7c3bed5882f9ab1da3f63db1a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2-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.2-cp311-none-win32.whl
Algorithm Hash digest
SHA256 66f94d35fd48e2b5cbe70a4601f036f76cb826318b893994ab7bd4186a65e78f
MD5 41df824d94d0c88e9b89112e9ceae63c
BLAKE2b-256 07dc4ac4deca7958b540ae9b58c56c0f2805d8c70a285722ba7ca246074223c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4fc4a6183a7a8006b83476fc0b26d6fb849996050e8c3c911b9d6a66fe6ccc1e
MD5 32a1e6355e9c33e758298fd4045d5ee3
BLAKE2b-256 98f96f83ba490c577350f79ede51dc74a00ea106bf85ad71b7c9221176f491b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp311-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0fc5f600b3a72c29a0944cbcbc1375962ad669023265c50cd1d8f794d7ae95f7
MD5 0492224cc9e3aa28664d5657a993de12
BLAKE2b-256 bcd572beccc1ea8730edf5f8592203da116a597633f7e204203ab1703ebb3df9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp311-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6389eb4bfc27264a951497847089e5e4485f6609c351ac321071d62881a21982
MD5 617637d51b33721da5e1e585a1c21107
BLAKE2b-256 a8ea426b47e69708abd428295dd0910d35fd0fc920819ef91bebda8a988e8cd5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp311-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1f372bcc70b888f0c953add8b15627efb9f3cc2c7b8ad0916560b6081093932c
MD5 fb6723388308f32888357ec1eab4d53c
BLAKE2b-256 878c19aa09c2c55f4df5162156c1c99963a22b141b2882b40ac5bfab6bb2e93a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2-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.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 ff799db717d5b0e423bd81fbae8131cf3463a80a642524a96952f6f3deaf2a95
MD5 45a04acfe0460a1ba67c9597507b2ef2
BLAKE2b-256 fa6242dc9d8e6b02b461a626fe10000dd29a01c1479997c48d2344bd938d573e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2-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.2-cp310-none-win32.whl
Algorithm Hash digest
SHA256 01c45723fbc389fac2ab8150e5ba80c357706ca69a74c29ec1a83a05921c53d1
MD5 a7fcc6fd693b3f35d1cb48991d26247a
BLAKE2b-256 8a4f8f69a91e14cde26d80d7092e06516b6fa32bc90dfd1262b6f4407899aa44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f20ba77a61440220bd2e380ceef8a86bf51f97ac9374a8af00aeedea904dad46
MD5 c9d77bd45b64b548615ad92e2e02d029
BLAKE2b-256 2c641853e945015cb2d1b92463dd4851851127e9f293350dfe7c8fc86eed249a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp310-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5209612dfc9038fbbb1a61dc01bd298d5279646d5e1c98cfe80878db3d862a3e
MD5 c574ba0523b68d1a6e0ff280fb5ae27e
BLAKE2b-256 c7d1bef70341522511bf9b3703e97c580bdb7d826ded9de650003a0035ff7858

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp310-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 949c071b50825cf341f03546e7354cef942c36fcc071a72a0417c035d6ee7e33
MD5 563b9f16dbe361b9ede1c0f746debd89
BLAKE2b-256 636a8c0e996ae5b569d52c293bd67cdc2b27457ada063d8d598e1e657217ffc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp310-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 701aff64dbf0635c2c875b518979b46b935ed4d3b3d2aee1c449e2960831d766
MD5 95e769a66eb20a0154ee12317e639c24
BLAKE2b-256 e97f6844e093f6b015c095dc18291e1f2fcb018537cdb61e256746263c3e7dba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2-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.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 86127075227f868a6b115eb96a74405539dde90168cd1a98781b0f1f6d4f9d7c
MD5 8e55aebb8d7a85427cf6708809b5216c
BLAKE2b-256 bd965df02fec9a092f949f5774fef6d32c48afc174a23f30e24df13c4c3fcbec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2-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.2-cp39-none-win32.whl
Algorithm Hash digest
SHA256 d34da29cd4305c4b85ea57528c1a31cfc6abfac7921d27153e633470e9dac104
MD5 c4c84f50ce8d40efff1954009744f4e7
BLAKE2b-256 2287d674955d0839ed054fa2715916815f70cdcf7828c0117ce2d1cca5f49813

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41d9cd45bb61cda890d446baeeded454fb4404086cf7f7e385e440123e9ecb56
MD5 ff211620286a8dde862f3bd6d0e6cd63
BLAKE2b-256 258c02e24334bead93acce0accad83da8111b2eddc781d4f55a6a3431a8eff20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp39-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 78b6c87fd375d1b017c63a426432be7ee4859f2142108b9c5dc8283599c112eb
MD5 3fbefe5c703d5bc56b38fc8e73a192c9
BLAKE2b-256 5bed1fd34ff0b252f252ebf5e7f65e09e4ed3a8a7ca75c2006f1e719f646d9f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp39-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1a08531194d038e068641be92fdc31276efbee2b718a8dc4281dc593f1a99e7
MD5 e0e3460ecacb7f035b19152bd079656d
BLAKE2b-256 ed7e936c2083ff4ea5d46df93f9bccdeb1e432f183ebab3bb708c5bd48b6d967

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp39-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ac236156688627bca0a8062bb4153f77108f072dd4a06a80626fd089c2879e04
MD5 697c1ad24ef9f35db01f039ba0b97e92
BLAKE2b-256 60585056877b8acd19e9e0e7226a03e7b99cdd3a4a8783271d91324e30594f9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2-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.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 a98cf7bb1ba8d64de78f443005c0f60c0c9644f73b3ebd57cbd20e232e2e5a30
MD5 04692927015b439c0d158d066fffbbbc
BLAKE2b-256 a656afaf46d3786d0c9d403d06db0f7ee362c8c3dd3783936f97d0a18afd83e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.2-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.2-cp38-none-win32.whl
Algorithm Hash digest
SHA256 18f19be85f277a36536277f3f4991a2d1d1b9c2d0c3a515925e9bef41780efe0
MD5 ce04255d465abef25b5de2d938a54ac3
BLAKE2b-256 4dbe2d81cbbca2de33c1138ea4afbdc413861729107cb10c7d734a9dd5da3f33

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp38-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7edc4b4542041a28f5644c09c1e670215ae014adc28a81d32786db73077d4cf3
MD5 22478da53a334f2c9225ec9be4e8807d
BLAKE2b-256 7e19104bfabfcb1e78e4ba9ff61aeaedc31ce26cf6d328de8ac6da5814a324ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp38-none-manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 2de9da709e14a0b32ca1ed7e268615189a8c1e76a26920dd45a92d9f0e207d1f
MD5 e2d937cad6c69bb23b61e6304d263e6f
BLAKE2b-256 ece817a5fa57ee97905d83c35dd6b8d788c938078c426f9c18d838ecbd6e4216

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp38-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f0d57e40bdbf6c6deacf94387d3aad918535d8723aa6e3a27e4bef1f3d52158a
MD5 1bd5d79d1fe0df47b2b4df281abda6bd
BLAKE2b-256 c5d044efb333c887ceb2299a8001c9e8747a0571222c3ae5db66b7b881ef5d95

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.2-cp38-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 40a713ea439548cf3c6bd910dc904cb868eae9d7bc1c2d0aebc04c84431822af
MD5 12b00c8eb1053ef00f8b9f6f806642cd
BLAKE2b-256 b0f3ac9aa3297c61087e6b7b8e13b85c538cf7ea8f7c201e1c3fafd9d24d6375

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