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.

Community

Join us on Discord here: #pymupdf

Installation

PyMuPDF requires Python 3.10 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 pymupdf # imports the pymupdf library
doc = pymupdf.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.

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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pymupdf-1.26.7-cp310-abi3-win_amd64.whl (18.4 MB view details)

Uploaded CPython 3.10+Windows x86-64

pymupdf-1.26.7-cp310-abi3-win32.whl (17.2 MB view details)

Uploaded CPython 3.10+Windows x86

pymupdf-1.26.7-cp310-abi3-musllinux_1_2_x86_64.whl (24.3 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

pymupdf-1.26.7-cp310-abi3-manylinux_2_28_x86_64.whl (24.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

pymupdf-1.26.7-cp310-abi3-manylinux_2_28_aarch64.whl (23.5 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

pymupdf-1.26.7-cp310-abi3-macosx_11_0_arm64.whl (22.5 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

pymupdf-1.26.7-cp310-abi3-macosx_10_9_x86_64.whl (23.2 MB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

Details for the file pymupdf-1.26.7.tar.gz.

File metadata

  • Download URL: pymupdf-1.26.7.tar.gz
  • Upload date:
  • Size: 84.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pymupdf-1.26.7.tar.gz
Algorithm Hash digest
SHA256 71add8bdc8eb1aaa207c69a13400693f06ad9b927bea976f5d5ab9df0bb489c3
MD5 d8f12f43b87b906654f04f2533ce015b
BLAKE2b-256 48d609b28f027b510838559f7748807192149c419b30cb90e6d5f0cf916dc9dc

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.7-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: pymupdf-1.26.7-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 18.4 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pymupdf-1.26.7-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 425b1befe40d41b72eb0fe211711c7ae334db5eb60307e9dd09066ed060cceba
MD5 549a65b34e7449eac35118b78fc866db
BLAKE2b-256 ddc3d0047678146c294469c33bae167c8ace337deafb736b0bf97b9bc481aa65

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.7-cp310-abi3-win32.whl.

File metadata

  • Download URL: pymupdf-1.26.7-cp310-abi3-win32.whl
  • Upload date:
  • Size: 17.2 MB
  • Tags: CPython 3.10+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for pymupdf-1.26.7-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 7c9645b6f5452629c747690190350213d3e5bbdb6b2eca227d82702b327f6eee
MD5 bd0c6ce991e6d39c8240300aed60f6a2
BLAKE2b-256 858ea117d39092ca645fde8b903f4a941d9aa75b370a67b4f1f435f56393dc5a

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.7-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.7-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 1d5106f46e1ca0d64d46bd51892372a4f82076bdc14a9678d33d630702abca36
MD5 a43c15a0b4cdf110da2c2df5f217ed3c
BLAKE2b-256 629bf86224847949577a523be2207315ae0fd3155b5d909cd66c274d095349a3

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.7-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.7-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 69dfc78f206a96e5b3ac22741263ebab945fdf51f0dbe7c5757c3511b23d9d72
MD5 07a7d79b49ad6a4f6628af29d434c7c8
BLAKE2b-256 2a6b3de1714d734ff949be1e90a22375d0598d3540b22ae73eb85c2d7d1f36a9

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.7-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.7-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e419b609996434a14a80fa060adec72c434a1cca6a511ec54db9841bc5d51b3c
MD5 c4d56534d01a0793269531a063aaed77
BLAKE2b-256 65e747af26f3ac76be7ac3dd4d6cc7ee105948a8355d774e5ca39857bf91c11c

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.7-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.7-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31aa9c8377ea1eea02934b92f4dcf79fb2abba0bf41f8a46d64c3e31546a3c02
MD5 cf2a9d1991fb3563f34c82e82e7823d1
BLAKE2b-256 7274448b6172927c829c6a3fba80078d7b0a016ebbe2c9ee528821f5ea21677a

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.7-cp310-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.7-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 07085718dfdae5ab83b05eb5eb397f863bcc538fe05135318a01ea353e7a1353
MD5 84b191f978e016962d57f03e63bc32d7
BLAKE2b-256 9435cd74cea1787b2247702ef8522186bdef32e9cb30a099e6bb864627ef6045

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page