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.5.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.5-cp39-abi3-win_amd64.whl (18.7 MB view details)

Uploaded CPython 3.9+Windows x86-64

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

Uploaded CPython 3.9+Windows x86

pymupdf-1.26.5-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.5-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.5-cp39-abi3-manylinux_2_28_aarch64.whl (23.5 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

pymupdf-1.26.5-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.5.tar.gz.

File metadata

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

File hashes

Hashes for pymupdf-1.26.5.tar.gz
Algorithm Hash digest
SHA256 8ef335e07f648492df240f2247854d0e7c0467afb9c4dc2376ec30978ec158c3
MD5 46cc7cdd4ea35a79877e114b05487171
BLAKE2b-256 8d9ae0a4e92a85fc17be7c54afdbb113f0ade2a8bca49856d510e28bd249e462

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.26.5-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.12.11

File hashes

Hashes for pymupdf-1.26.5-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 39a6fb58182b27b51ea8150a0cd2e4ee7e0cf71e9d6723978f28699b42ee61ae
MD5 6692895ea21527faa664d602981882d5
BLAKE2b-256 c696fd59c1532891762ea4815e73956c532053d5e26d56969e1e5d1e4ca4b207

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.26.5-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.12.11

File hashes

Hashes for pymupdf-1.26.5-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 a2a42f5911d153a47bf5c3e162a0bfe8745eb9bec3e59fbaf87617b4003d8270
MD5 26429e8d956f517661f3cceb350a769f
BLAKE2b-256 2c999d4b36485538e29df0a013fb02bbf6b5b0743a428fa07515e36631c43363

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.5-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e24e7a7d696bd398543cc5c147869edb2026d5d5a21b7f8e35db2f20170b389e
MD5 456cd42fd4f258a46c459a46929e0787
BLAKE2b-256 289087b7fdfc9cd6991a3eb69a5752f6343374c34f258c511c242f4d60791eea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.5-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 caad0ffeb63dcc4a29ca40f3c68d7b78d32a932e834b0056b529cc0bdbaaffc9
MD5 fc1aff927041aed683b58ff0132a3ce2
BLAKE2b-256 5b5a1292a0df4ff71fbc00dfa8c08759d17c97e1e8ea9277eb5bc5f079ca188d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.5-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7dfea81fdd73437a6a6ce83e1fcf556faee9327a6540571e58bf04fa362bb0cd
MD5 83f6cde77f3c5124f5d787fbaed282a9
BLAKE2b-256 dfc2af93c6367f79e9b5435f803bde51c1dc8225f054f8238162dda80b44986d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.5-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d58599479bc471d3ae56c3d68d9160d0b7de8a3bd40221ddc3a4eaae2d281b86
MD5 bad0c7393af41d8895c66b1398bf7d77
BLAKE2b-256 c1e2e87e62284ba98d59f1fd4fc7542ef2ed0002525754a485fa4077b3bbddae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.5-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2bfb58f07ad631e5f71ad0bd6f1ff52700f7ba7ebb4973130e81e75b721beae1
MD5 6dc914b661256dfaf2304b9c4a652d6e
BLAKE2b-256 dd3f7fc927fd66922ce838d4c974ff9a685c5f5aba108a5d94914dc05c9371f5

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