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

Uploaded Source

Built Distributions

pymupdf-1.26.1-cp39-abi3-win_amd64.whl (18.5 MB view details)

Uploaded CPython 3.9+Windows x86-64

pymupdf-1.26.1-cp39-abi3-win32.whl (16.9 MB view details)

Uploaded CPython 3.9+Windows x86

pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl (24.3 MB view details)

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

pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl (24.1 MB view details)

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

pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl (23.4 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl (22.4 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl (23.1 MB view details)

Uploaded CPython 3.9+macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pymupdf-1.26.1.tar.gz
Algorithm Hash digest
SHA256 372c77c831f82090ce7a6e4de284ca7c5a78220f63038bb28c5d9b279cd7f4d9
MD5 74b4a22926bf80d05d3c94abe9fa8d6c
BLAKE2b-256 bd62d29612ca33b7844e77d2c789fec359f4c44fd84bdd08ce673f6279d257e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.26.1-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 18.5 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.26.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8deae5168fce37d707f68d1981da6c0bb71f1f176d9835d5914ad46f779a036f
MD5 c5de9ab0b2edddb32754c9d2aff209fd
BLAKE2b-256 a71b0613759a059c8c952c18811c7c7dd0ba5d7945ed13a535719489f533d700

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.26.1-cp39-abi3-win32.whl
  • Upload date:
  • Size: 16.9 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.26.1-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 82ed9e106cf564fc959c0691c374ba68443086ba1a1c9f26128eebbc3e6df9e5
MD5 80913e22f079535e214340385eef8e6f
BLAKE2b-256 e18c56bd5951128d5c5c0b64d2942090c2cd7bc44302bac991b941ac736e3d63

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.1-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 26cebdcc1b2b7a7445423599ce2e0000f2be0333cce0fa0e6846e5a7da46f965
MD5 2cb616066734793ce69d5bb1f2b72a62
BLAKE2b-256 993923ac15cf0edc2877ef366dc7ae041ac199d212433c2c3113661d1a1d5ad0

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.1-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a65c411eb1cbb79e40c307e10fbad23658f19e9d7334ac4de21d24b58009a7b9
MD5 3e4df2296448029e763b417698e2ace8
BLAKE2b-256 829fe7101bd24a0f5cbfa0310c8e5c3a8ec0dd9a86986812ff86ac2fbd273c92

See more details on using hashes here.

File details

Details for the file pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pymupdf-1.26.1-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3b62c4d443121ed9a2eb967c3a0e45f8dbabcc838db8604ece02c4e868808edc
MD5 9e5c24e1a3d6bd837216376734f466c9
BLAKE2b-256 e8cfd5b1cd775a17a7b83e25cbf4c46f64cf1352c962ca97646e3e01953cf0df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 aad7949eca62aca40854510cdb125cf873b181726dc9497a90834200f31faa63
MD5 18cfa829577d31b1107fc421e8f7e844
BLAKE2b-256 64e0cc3ec6a4d5ada8992b8610f134565ceb517243f12736b50d795cb3459315

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.1-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 32296f12a7c7f36febd59cee77823a54490313bcaba9879b17def6518186f94e
MD5 27bd9b20504ded85a3e9c2a124c82565
BLAKE2b-256 325a3399a2caf51c91db650de57464465b830c2d4ea15b23d24a98182202b704

See more details on using hashes here.

Supported by

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