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.9 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.3.tar.gz (76.0 MB view details)

Uploaded Source

Built Distributions

pymupdf-1.26.3-cp39-abi3-win_amd64.whl (18.7 MB view details)

Uploaded CPython 3.9+Windows x86-64

pymupdf-1.26.3-cp39-abi3-win32.whl (17.1 MB view details)

Uploaded CPython 3.9+Windows x86

pymupdf-1.26.3-cp39-abi3-musllinux_1_2_x86_64.whl (24.3 MB view details)

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

pymupdf-1.26.3-cp39-abi3-manylinux_2_28_x86_64.whl (24.1 MB view details)

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

pymupdf-1.26.3-cp39-abi3-manylinux_2_28_aarch64.whl (23.5 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

pymupdf-1.26.3-cp39-abi3-macosx_11_0_arm64.whl (22.4 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

pymupdf-1.26.3-cp39-abi3-macosx_10_9_x86_64.whl (23.1 MB view details)

Uploaded CPython 3.9+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pymupdf-1.26.3.tar.gz
  • Upload date:
  • Size: 76.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for pymupdf-1.26.3.tar.gz
Algorithm Hash digest
SHA256 b7d2c3ffa9870e1e4416d18862f5ccd356af5fe337b4511093bbbce2ca73b7e5
MD5 968b6058963491c64ed913641871cce0
BLAKE2b-256 6dd470a265e4bcd43e97480ae62da69396ef4507c8f9cfd179005ee731c92a04

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.3-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: pymupdf-1.26.3-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 18.7 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for pymupdf-1.26.3-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b4cd5124d05737944636cf45fc37ce5824f10e707b0342efe109c7b6bd37a9cc
MD5 cdf8a64e20aff1953969819a197f34b8
BLAKE2b-256 4a268c72973b8833a72785cedc3981eb59b8ac7075942718bbb7b69b352cdde4

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.3-cp39-abi3-win32.whl.

File metadata

  • Download URL: pymupdf-1.26.3-cp39-abi3-win32.whl
  • Upload date:
  • Size: 17.1 MB
  • Tags: CPython 3.9+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for pymupdf-1.26.3-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 a839ed44742faa1cd4956bb18068fe5aae435d67ce915e901318646c4e7bbea6
MD5 75a6e80e6b9820a3a712979edb763652
BLAKE2b-256 8222ecc560e4f281b5dffafbf3a81f023d268b1746d028044f495115b74a2e70

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.3-cp39-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.3-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 759b75d2f710ff4edf8d097d2e98f60e9ecef47632cead6f949b3412facdb9f0
MD5 42d8528284667a39e9f53f7c9c0781e3
BLAKE2b-256 715de8f88cd5a45b8f5fa6590ce8cef3ce0fad30eac6aac8aea12406f95bee7d

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.3-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.3-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 454f38c8cf07eb333eb4646dca10517b6e90f57ce2daa2265a78064109d85555
MD5 69911e5a9d021d8ce4f65a9e19a5bdfd
BLAKE2b-256 9c7f21828f018e65b16a033731d21f7b46d93fa81c6e8257f769ca4a1c2a1cb0

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.3-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.3-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a2d7a3cd442f12f05103cb3bb1415111517f0a97162547a3720f3bbbc5e0b51c
MD5 053032358dd9086e350f01c748688694
BLAKE2b-256 fc20661d3894bb05ad75ed6ca103ee2c3fa44d88a458b5c8d4a946b9c0f2569b

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.3-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 436a33c738bb10eadf00395d18a6992b801ffb26521ee1f361ae786dd283327a
MD5 7c5d1e302377d88fd9344733287bd70f
BLAKE2b-256 043dec5b69bfeaa5deefa7141fc0b20d77bb20404507cf17196b4eb59f1f2977

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.3-cp39-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.3-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ded891963944e5f13b03b88f6d9e982e816a4ec8689fe360876eef000c161f2b
MD5 04749bfc121c3d6f35b57cdce64d619d
BLAKE2b-256 70d3c7af70545cd3097a869fd635bb6222108d3a0fb28c0b8254754a126c4cbb

See more details on using hashes here.

Supported by

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