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.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.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.2-cp310-abi3-win_amd64.whl (19.2 MB view details)

Uploaded CPython 3.10+Windows x86-64

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

Uploaded CPython 3.10+Windows x86

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

File metadata

  • Download URL: pymupdf-1.27.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ea8fdc3ab6671ca98f629d5ec3032d662c8cf1796b146996b7ad306ac7ed3335
MD5 0fdcc77b286b648d1efd493cdffffd90
BLAKE2b-256 f132f6b645c51d79a188a4844140c5dabca7b487ad56c4be69c4bc782d0d11a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2.2-cp314-cp314t-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6cebfbbdfd219ebdebf4d8e3914624b2e3d3a844c43f4f76935822dd9b13cc12
MD5 bf2a3286851f91eea58ea15842d97950
BLAKE2b-256 c2c6e3e11c42f09b9c34ec332c0f37b817671b59ef4001895b854f0494092105

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.27.2.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.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 09bb53f9486ccb5297030cbc2dbdae845ba1c3c5126e96eb2d16c4f118de0b5b
MD5 07c45e94e042e8d47571c5251c8a78eb
BLAKE2b-256 a8b62a9a8556000199bbf80a5915dcd15d550d1e5288894316445c54726aaf53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.27.2.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.2-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 0b8e924433b7e0bd46be820899300259235997d5a747638471fb2762baa8ee30
MD5 f292909ada6a14bbe6707467913e37bf
BLAKE2b-256 bafdf1ebe24fcd31aaea8b85b3a7ac4c3fc96e20388be5466ace27c9a3c546d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2.2-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8b4bbfa6ef347fade678771a93f6364971c51a2cdc44cd2400dc4eeed1ddb4e6
MD5 a0b467d586df39b589a7b7fe38b0ebe1
BLAKE2b-256 dbe6386edb017e5b93f1ab0bf6653ae32f3dd8dfc834ed770212e10ca62f4af9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2.2-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 892698c9768457eb0991c102c96a856c0a7062539371df5e6bee0816f3ef498e
MD5 981778ced9b2502bbb900a05e0dcb1f3
BLAKE2b-256 228e85e9d9f11dbf34036eb1df283805ef6b885f2005a56d6533bb58ab0b8a11

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2.2-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c5e3d54922db1c7da844f1208ac1db05704770988752311f81dd36694ae0a07b
MD5 21cb57a1f9b6333e2c9090178bae1046
BLAKE2b-256 42be984f0d6343935b5dd30afaed6be04fc753146bf55709e63ef28bf9ef7497

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e2e4299ef1ac0c9dff9be096cbd22783699673abecfa7c3f73173ae06421d73
MD5 f626946cc5501d8fd1a204e9d739a450
BLAKE2b-256 6d0e9f526bc1d49d8082eff0d1547a69d541a0c5a052e71da625559efaba46a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.27.2.2-cp310-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 800f43e60a6f01f644343c2213b8613db02eaf4f4ba235b417b3351fa99e01c0
MD5 7e90e47bf30e3bfce429b3d90c6bc4e4
BLAKE2b-256 9088d01992a50165e22dec057a1129826846c547feb4ba07f42720ac030ce438

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