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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

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-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-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-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-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-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