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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.12 Windows x86

PyMuPDF-1.23.10-cp312-none-manylinux2014_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.12

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

Uploaded CPython 3.12 macOS 11.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 Windows x86

PyMuPDF-1.23.10-cp311-none-manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.11

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

PyMuPDF-1.23.10-cp311-none-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

PyMuPDF-1.23.10-cp310-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 Windows x86

PyMuPDF-1.23.10-cp310-none-manylinux2014_x86_64.whl (4.4 MB view details)

Uploaded CPython 3.10

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

PyMuPDF-1.23.10-cp310-none-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

PyMuPDF-1.23.10-cp39-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 Windows x86

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

Uploaded CPython 3.9

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

PyMuPDF-1.23.10-cp39-none-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

PyMuPDF-1.23.10-cp38-none-win_amd64.whl (3.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 Windows x86

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

Uploaded CPython 3.8

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

Uploaded CPython 3.8 macOS 11.0+ ARM64

PyMuPDF-1.23.10-cp38-none-macosx_10_9_x86_64.whl (4.2 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file PyMuPDF-1.23.10.tar.gz.

File metadata

  • Download URL: PyMuPDF-1.23.10.tar.gz
  • Upload date:
  • Size: 102.4 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.10.tar.gz
Algorithm Hash digest
SHA256 ac8da3444b8f735b6485a1a37022c0c1d4b9db1700cf8632b28a17ceb2d33022
MD5 17955c5d489bbd15125f315c7e9439a1
BLAKE2b-256 e74f33ef9afebd3019205105880884da6e7e3d9a2221f41afbc4904f637362ac

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.10-cp312-none-win_amd64.whl.

File metadata

  • Download URL: PyMuPDF-1.23.10-cp312-none-win_amd64.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: CPython 3.12, 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.10-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 9ec2f5ad667f98837f74bc996ef3a2208172168f7f518e5dd4e48621d7405794
MD5 0e50b724b9f93bf3a1efbe13b9d06d8f
BLAKE2b-256 74996bd609750886eba6a28e623baab8ef2397a48ba5dbf2c8cc3f60eaa614b1

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.10-cp312-none-win32.whl.

File metadata

  • Download URL: PyMuPDF-1.23.10-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.10-cp312-none-win32.whl
Algorithm Hash digest
SHA256 3b4cffb18d14d5a413b1820915e941297a6162060c31a47ab4111abbebb6d2f0
MD5 1a8bd577a13bd4808423c942c360cf3e
BLAKE2b-256 8c8c60cbb3f8ff4b2df776aef21862599c44a03a0d0765ee79b9ab1a412f4151

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.10-cp312-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp312-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8e92503b5cb9b31e1b70205408720cb030da0fa990cdc9a9222e7277c8391e8a
MD5 f8a6d74aa605a2c4a72d2bf855376212
BLAKE2b-256 a025d62ce9163f58e61ed243cd5b8dd43922a9947bfdeecdf7b1b3c35fea5627

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.10-cp312-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp312-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d93dc77e03bb5fe48020d3bd0e60402e8c0a77fb6fca90cb394677a5d05e3c1
MD5 cc881e06d1b5d72ad71092bec273bbdc
BLAKE2b-256 ed813f8e11d0b6437ccbe489b1368eee31d47934a883502306fb758e4b3536ea

See more details on using hashes here.

File details

Details for the file PyMuPDF-1.23.10-cp312-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp312-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 17b792f770d642997e6e0749fb1157bcaba7c9b07718ca11f600cfd65a28cd68
MD5 f281cf308891be1c1ec5f19177acbc4c
BLAKE2b-256 968c774a8c93e267f89a68884988ac3b9893be5a12a932ad471598a677d18d65

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.10-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.10-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 40dfbdeb347e4de5204bd60591ef6e2713bbdbadff421ab9cdcd8a53fc84f341
MD5 2bc2932a2c6ddc4eba7a1afcebdea1f7
BLAKE2b-256 a4c67f68ac1d345c8cc0e9dc0329af825cfd5aa0e06d41197452f0518cb7d5a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.10-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.10-cp311-none-win32.whl
Algorithm Hash digest
SHA256 ee0b2ba549db2481c6c147d684872e36f35a53e0b784eedb8d71747081dec2dd
MD5 bc493825efdf2c047f7789b2d751a1c6
BLAKE2b-256 fe647bb0c89ca58296a36fc7b76463de226f2e06562ab6f2f4028ef050157e01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp311-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d1af74fad4906646751583bbfaa89ffc8ac4e8527c4a8a89ce6253e1816f1421
MD5 47f6672a32b0fa50adfd41610f648ea1
BLAKE2b-256 c0dd079c20c9a1b131b1c54b63448f6ef7af6da3058e797044af42749a963812

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp311-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71100cfcdbe296952ab62a6e2ae14fe2f66b04b6b581819ccddef713375be3d6
MD5 cc2adf921f3076985a6723b2afd3bb2f
BLAKE2b-256 34919d2ed81460cf88310a08394900b9b3dcafcab350b2fde539cde272530331

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp311-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 950ea2dc9e84177e3f8ba81ab93e72747840d0b486d8da8470417869ed05fae5
MD5 81e1f723be48ce70867f85d23c91607e
BLAKE2b-256 3ea4c8847e3c54f1380b7b2141e7d137e897ec35a6bbc0ce862d43f886e947d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.10-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.10-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 188fb93e8842723495124a76a41eecbc0c98d5f7d532d9b0fbe9256fe699d61f
MD5 691998ee8cad03cf4dc8fd1a3ff6f47f
BLAKE2b-256 99433c77c5ff7b48e5bfc6f7d76353aa62c22f39b06fbaf3c469660b0716bf9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.10-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.10-cp310-none-win32.whl
Algorithm Hash digest
SHA256 665836c7d601ca515511c2ed47a6ee503bd91845a383edf0d412ed1dd171f0ef
MD5 1f0d61e35524b1293bc096b7881461bd
BLAKE2b-256 afa02f13760a8420455610eea5291d7c68d84830823284f9e82ee384a7e9d1e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp310-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d982ea8b77490f0b550390a8f85143806ecb4d7b9e4700d315748adc86ca795a
MD5 4c4cce507a5b3f6af1d2e1375475d41f
BLAKE2b-256 6ddb1cc64812d572520f1df2754b9fab6845f274541a9b6278417809632a0cc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp310-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50e2fc917c9061b61c21f3cb4d52b0d39843097ebffd0068bfb259e70b56ef0d
MD5 03bedd419a5c9e3e9eb5c4a8a3ae7384
BLAKE2b-256 292cde4754ead3c90f4b92ff4da0607b434934be21081fef2794ae929174acb4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp310-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3ad5a070eea2a801676ae6db56bd750f8cf524fb3c992a97a95f3c16453090a3
MD5 a0145eb0bd5d8604c4b69c605ca760f5
BLAKE2b-256 665cbdab72a8f9edbda7003ade18405578bf24cc0ee2eb74288d454061cf224f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.10-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.10-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 4c220c9d01edae9a94fefa7ee5a2dcf509e075baac3231d1d337e536f3a441da
MD5 427fcb56d434494887064f75c990b9a3
BLAKE2b-256 d7369c49a34602678f9158e43d85f91c0d4b3adec0c620f1d272ab58f39f75b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.10-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.10-cp39-none-win32.whl
Algorithm Hash digest
SHA256 dce79effd7df7175137cebb9405a027d4d1f87d35ce3425e10b12b80d7f5496c
MD5 74f435e95a2921dbb000d5ebb9149d6e
BLAKE2b-256 72bda00d577dd042f2d6bd36a51c365f12e48d98037d26f571b8f5edc795f0fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp39-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f23002f5239d5c51ef17c4a20ac6fad2f6f98566ccb34c1013d004a70f01b9e3
MD5 f40f57c9536cb471a02027d717f4f46b
BLAKE2b-256 64afaee3942539bf8b2f906009a9d44072c5b2a5ea48e4289ac1ec19ffd410e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp39-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1df7f09ed7639f84deaf7ead6d27fc7fb7290c4b8a509764b3f08eceb6ba5767
MD5 53e19caf8198ec35b86274af2219f066
BLAKE2b-256 8390a4c0dd88fae4028e430cb8be3646dd954fe48ee63c5d332f04057f6a4923

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp39-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ffe6c5775a8c77c73f98d82c696d44bd738a9656c279768c6486332f33838768
MD5 d34dd519ca5341470058010f96198c31
BLAKE2b-256 8d6da9220520640a1478ac87be2e4e01b7b9a5f357a554692eb4f1ad73463319

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.10-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.10-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 c8696798a7df1f5efff558bf38a3e615bd711c51269209966bbde08d245e1d03
MD5 91d5019d207242d07aedfe190bb6884b
BLAKE2b-256 3851699c975d2b5ece90f4e6a9f07247cee29ddca580078a836456940d609e41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyMuPDF-1.23.10-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.10-cp38-none-win32.whl
Algorithm Hash digest
SHA256 8cb555461a3871251b6143478ff78794259591d82652939a04e2ba24bc2ea27c
MD5 308f0e72350bcdfcf26d225c6cb8a0c4
BLAKE2b-256 87b864d54881f0c5c4061744b08ea6ac5e8694f842d3dba1209bce4992680bb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp38-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9ab34bdea9b57f44f69d5d0f452a62fbc9b63e952e7af72395b27c46b5f3527e
MD5 143ab0fcd53ba78a668d0d143a698dbe
BLAKE2b-256 1bf5ba6a0e75cbb3d2eba69f2e2857a886268859dd289eb94c5d65f7f50bc910

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp38-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 921fd61e7888890dc395e4146bf9405d82cc517c746d1e12e2604a245d8d497f
MD5 84207c96e2bde48822a72a68103cab85
BLAKE2b-256 e586005def073ab0adf9e66ecc01b966931b70b4c18ef0e9393499b646330fe2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for PyMuPDF-1.23.10-cp38-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7bf09a58c78a1e0053d26c6197d4f1362c0c9bae30ce52d77fc775d6351c6050
MD5 be77eaf1ebca7186bcaa1e5c80f0a118
BLAKE2b-256 2d169acc26513f931d47802af25c29ce30977a9fb0af1e9cf904e82af95b3dab

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