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.27.1.tar.gz (85.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.27.1-cp310-abi3-win_amd64.whl (19.2 MB view details)

Uploaded CPython 3.10+Windows x86-64

pymupdf-1.27.1-cp310-abi3-win32.whl (18.0 MB view details)

Uploaded CPython 3.10+Windows x86

pymupdf-1.27.1-cp310-abi3-musllinux_1_2_x86_64.whl (25.2 MB view details)

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

pymupdf-1.27.1-cp310-abi3-manylinux_2_28_x86_64.whl (24.9 MB view details)

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

pymupdf-1.27.1-cp310-abi3-manylinux_2_28_aarch64.whl (24.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

pymupdf-1.27.1-cp310-abi3-macosx_11_0_arm64.whl (23.3 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

pymupdf-1.27.1-cp310-abi3-macosx_10_9_x86_64.whl (24.0 MB view details)

Uploaded CPython 3.10+macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pymupdf-1.27.1.tar.gz
  • Upload date:
  • Size: 85.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.27.1.tar.gz
Algorithm Hash digest
SHA256 4afbde0769c336717a149ab0de3330dcb75378f795c1a8c5af55c1a628b17d55
MD5 2a4ba6f9a11e790e00fbb57d07331af5
BLAKE2b-256 1b0c40dda0cc4bd2220a2ef75f8c53dd7d8ed1e29681fcb3df75db6ee9677a7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.27.1-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 19.2 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.27.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4b6268dff3a9d713034eba5c2ffce0da37c62443578941ac5df433adcde57b2f
MD5 f889f3e6cd7bc8ca269edc4993ff8fc8
BLAKE2b-256 3e99fe4a7752990bf65277718fffbead4478de9afd1c7288d7a6d643f79a6fa7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.27.1-cp310-abi3-win32.whl
  • Upload date:
  • Size: 18.0 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.27.1-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 fa33b512d82c6c4852edadf57f22d5f27d16243bb33dac0fbe4eb0f281c5b17e
MD5 216a3ccba6524da607fab219a3bd0a44
BLAKE2b-256 8a81f937e6aa606fd263c3a45d0ff0f0bbdbf3fb779933091fc0f6179513cc93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.1-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 4f1837554134fb45d390a44de8844b2ca9b6c901c82ccc90b340e3b7f3b126ca
MD5 e3d13b90637092971bd2ca818466349a
BLAKE2b-256 2b29690202b38b93cf77b73a29c25a63a2b6f3fcb36b1f75006e50b8dee7c108

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aeaed76e72cbc061149a825ab0811c5f4752970c56591c2938c5042ec06b26e1
MD5 bbf8dd5c828d7867e777bceb61721cbf
BLAKE2b-256 72d5c701cf2d0cdd6e5d6bca3ca9188d7f5d7ce3ae67dd1368d658cd4bae2707

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.1-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2c9d9353b840040cbc724341f4095fb7e2cc1a12a9147d0ec1a0a79f5d773147
MD5 d5848eab8d3d67853880dff6e7f84a40
BLAKE2b-256 8edb937377f4b3e0fbf6273c17436a49f7db17df1a46b1be9e26653b6fafc0e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3de95a0889395b0966fafd11b94980b7543a816e89dd1c218597a08543ac3415
MD5 2d877988a4d9a626d4b738d3abc01f1d
BLAKE2b-256 75c2070dff91ad3f1bc16fd6c6ceff23495601fcce4c92d28be534417596418a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.1-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bee9f95512f9556dbf2cacfd1413c61b29a55baa07fa7f8fc83d221d8419888a
MD5 00873746b05b5745dae729cf2b8b61e6
BLAKE2b-256 1319fde6ea4712a904b65e8f41124a0e4233879b87a770fe6a8ce857964de6d5

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