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.2.tar.gz (85.4 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.2-cp314-cp314t-manylinux_2_28_x86_64.whl (25.0 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ x86-64

pymupdf-1.27.2-cp310-abi3-win_amd64.whl (19.2 MB view details)

Uploaded CPython 3.10+Windows x86-64

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

Uploaded CPython 3.10+Windows x86

pymupdf-1.27.2-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.2-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.2-cp310-abi3-manylinux_2_28_aarch64.whl (24.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

pymupdf-1.27.2-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.2.tar.gz.

File metadata

  • Download URL: pymupdf-1.27.2.tar.gz
  • Upload date:
  • Size: 85.4 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.2.tar.gz
Algorithm Hash digest
SHA256 37fc9cedeafb40839f86a074d4d9feab725144bdd4bbfd20308ff8957e2b10af
MD5 e6c51feac839c9f3d226879dd8ad54bc
BLAKE2b-256 a4fbd80374ab091ab7ad5a5e7981a45c877ae094db668c1ab4d30f1109a4ec6a

See more details on using hashes here.

File details

Details for the file pymupdf-1.27.2-cp314-cp314t-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf-1.27.2-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 261c916915cede4c546559810d3210277f86f31b52dd3de138f1e12d95a4c6b6
MD5 77b95a940857f99bdef9f4a8deb0a5da
BLAKE2b-256 e6a4e9257882f0569a21d51207a58f7586a799e76dc6b4008029a04f2329194c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.27.2-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.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 acdfdb7329882246545a0f6bc85f91739e2773ed81f9301c1687cffb826470f3
MD5 ca7deb068d50a7d4cb5b103d4f787840
BLAKE2b-256 f5fba3f1f8813f6e93c65d1f7ebca6530a889f1ae109229b537f7a617b2aab57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.27.2-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.2-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 6deef49e06c9a5d8670bf5835a911ab887dac4b3ed4bd60ab7d93da6aa8ff6f1
MD5 9840dfbba1432a928a5ee9c3085bb20d
BLAKE2b-256 0523e34d704f7242885dd1d67cfbe1040051a04b4b7e2cf1cbd27af9bd4500a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 9617d5e71c334937c804544fa201946c5f73d0a97b5842b96857bdabfefbc343
MD5 797765013fd183552a32ef73b2aea47b
BLAKE2b-256 7b4f1659f1d80b5d2f5aad134c2ca63894c63daf47a3ffb7e18987fe25e49097

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 917f4dd52daea504d5c60e1430c17d637b5014a43e66d068b4b356effe087dba
MD5 c1c9652aed875d0e0785e994b7a32484
BLAKE2b-256 ab56c6c16fa2dcfe2476ec28a9aaaca773dc35c593699e81e573211c91442770

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1081235fcfad268d801cd73a7b69c629939e2c46ed4d97035cb1bb7b5b90dc54
MD5 7c697bffba29b220d5732a5df9192a21
BLAKE2b-256 1a8edf2ab91a680a77c82bc4501cdca60767b3758d75552e4d2849647a16cbc0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5095efb242cfe1c46fec1c864a13f000098564829c98366582dde7ad9e61aa32
MD5 67d6f196ada6ebcaaf93c194c92b8522
BLAKE2b-256 4406c8cc8c8ade83f5a75ac0f543edc2bc3c52d8c38c1d55d1e0713558258540

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a60ff9010d7025428e31d92ac2c9b4218c7c4844409d0b31a050565ea0a955fd
MD5 8e6d842409a2a4e2873ef5296565e1c5
BLAKE2b-256 98ee2c10b6bde83ee42f5150b690ace952a802a7e632776dadd42bbfe5b68601

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