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.25.5.tar.gz (69.8 MB view details)

Uploaded Source

Built Distributions

pymupdf-1.25.5-cp39-abi3-win_amd64.whl (16.6 MB view details)

Uploaded CPython 3.9+ Windows x86-64

pymupdf-1.25.5-cp39-abi3-win32.whl (15.1 MB view details)

Uploaded CPython 3.9+ Windows x86

pymupdf-1.25.5-cp39-abi3-musllinux_1_2_x86_64.whl (21.3 MB view details)

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

pymupdf-1.25.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (20.0 MB view details)

Uploaded CPython 3.9+ manylinux: glibc 2.17+ x86-64

pymupdf-1.25.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (19.5 MB view details)

Uploaded CPython 3.9+ manylinux: glibc 2.17+ ARM64

pymupdf-1.25.5-cp39-abi3-macosx_11_0_arm64.whl (18.6 MB view details)

Uploaded CPython 3.9+ macOS 11.0+ ARM64

pymupdf-1.25.5-cp39-abi3-macosx_10_9_x86_64.whl (19.4 MB view details)

Uploaded CPython 3.9+ macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pymupdf-1.25.5.tar.gz
Algorithm Hash digest
SHA256 5f96311cacd13254c905f6654a004a0a2025b71cabc04fda667f5472f72c15a0
MD5 cc8f9de702d14a7ffd8330373097eb9f
BLAKE2b-256 f9af3d5d363241b9a74470273cf1534436f13a0a61fc5ef6efd19e5afe9de812

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.25.5-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 16.6 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for pymupdf-1.25.5-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 7f44bc3d03ea45b2f68c96464f96105e8c7908896f2fb5e8c04f1fb8dae7981e
MD5 a0ace1f585b0a9ca2ff2a48f0f71ecb7
BLAKE2b-256 71c2a9059607f80dcaf2392f991748cfc53456820392c0220cff02572653512a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.25.5-cp39-abi3-win32.whl
  • Upload date:
  • Size: 15.1 MB
  • Tags: CPython 3.9+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for pymupdf-1.25.5-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 65e18ddb37fe8ec4edcdbebe9be3a8486b6a2f42609d0a142677e42f3a0614f8
MD5 2aa34cf5af175bd520d406a028c0febc
BLAKE2b-256 ec47682a8ddce650e09f5de6809c9bce926b2493a19b7f9537d80d4646989670

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.25.5-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6ed7fc25271004d6d3279c20a80cb2bb4cda3efa9f9088dcc07cd790eca0bc63
MD5 215ec1e4c89a60f274e5c19575228ce7
BLAKE2b-256 bddbb4edec9e731ea7c2b74bf28b9091ed4e919d5c7f889ef86352b7fd416197

See more details on using hashes here.

File details

Details for the file pymupdf-1.25.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf-1.25.5-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ee22155d3a634642d76553204867d862ae1bdd9f7cf70c0797d8127ebee6bed5
MD5 89b13725ce90f0bb928c11d80f926e6b
BLAKE2b-256 181295e2ebe2933f94800fdeafd87bc281a790e1dc947b147c3d101df4f73703

See more details on using hashes here.

File details

Details for the file pymupdf-1.25.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for pymupdf-1.25.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 d94b800e9501929c42283d39bc241001dd87fdeea297b5cb40d5b5714534452f
MD5 7be06d2764e99362f907ae57b1fd03c4
BLAKE2b-256 8b2229edb3236aed2f99a7922699fd71183e2f6cdde3c3884670158ae4dcf3ea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.25.5-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a35e2725fae0ab57f058dff77615c15eb5961eac50ba04f41ebc792cd8facad
MD5 c99238e3769cd1628913f5aa4b65b922
BLAKE2b-256 4e5543b64fa6cd048d2ea4574c045b5ac05d023254b91c2c703185f6f8a77b30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.25.5-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cde4e1c9cfb09c0e1e9c2b7f4b787dd6bb34a32cfe141a4675e24af7c0c25dd3
MD5 b6d4bade8b5c4e185a5d6513867117ab
BLAKE2b-256 855f153d6c338291448e182648844849d13938a62a82a3e4a9b0907d9b381148

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page