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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9+ Windows x86-64

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

Uploaded CPython 3.9+ Windows x86

pymupdf-1.26.0-cp39-abi3-musllinux_1_2_x86_64.whl (25.3 MB view details)

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

pymupdf-1.26.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (24.1 MB view details)

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

pymupdf-1.26.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (23.4 MB view details)

Uploaded CPython 3.9+ manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9+ macOS 11.0+ ARM64

pymupdf-1.26.0-cp39-abi3-macosx_10_9_x86_64.whl (23.2 MB view details)

Uploaded CPython 3.9+ macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pymupdf-1.26.0.tar.gz
  • Upload date:
  • Size: 74.6 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.0.tar.gz
Algorithm Hash digest
SHA256 ffe023f820379c84a0ddae38b0d07ea4016e1de84929491c34415520c629bcce
MD5 e9b5ed363059c1c4d9bc434bb4dd67da
BLAKE2b-256 9913d9f3b67b98111e79307e2a3cf6d5f73daaca002144cc6d236c4a0adbc386

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.26.0-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.0-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e39cc74ff030d773c4e76b9e5c5919cc4683895b73bd63bfd7a349a53ab5e8d7
MD5 324be06c0430b288ea224d8f2f6c9529
BLAKE2b-256 e9d7a6ce6629b66921529543c899830104f40dde45d98534d945970ea61ca8c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.26.0-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.0-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 eeb04a439355e2077f7675b8ad9377263d81990fc507748f2254a87d771d682b
MD5 c547c48e6fb79b85146adaa33b4c3c71
BLAKE2b-256 59c72e3e3d9419415e3c479fd9cb23067d33cc17db89e64c9167551a4acb66f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.0-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b5d4751696ba888ab1a91c6a0208c5d31724ee0bebe406f7a83067a08214f88b
MD5 5d14264c8e3f9409edc019a97fb0fb62
BLAKE2b-256 e1809cca07bf9c5dfa273781d3559266dcce2001ed111f068b80cad950584c01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 a3f6a45fcf8177763a2629a2ab2cad326e8950a0d120b174b56369365355a2a7
MD5 7c4fab075fa7d33f5f3e747de2ccacef
BLAKE2b-256 bb86959057f3cbbff4a7a00a8214f9f1787f6f708bd3c63091b47a95f1ae4053

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 84a4dc96144a6bdf13f7d78c21500b3d1bef14d658156afd479acb3995f650c3
MD5 ea6d6eb76808d14acddb72385089436f
BLAKE2b-256 90e1847d93fecbc975978cb2c6c38dbfbd09dde48c1bc97f9298f2b719880230

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 26c5df128a0ed7c38b80a1e7ddd792dd4d8b264839b6b8b6b6b768b13c0bb60e
MD5 a49ab8cc7e3071f9fe630efd5dfb0e53
BLAKE2b-256 edbb2c39c2016b5be35372c5df08b44fa9a4778ccf03f9532b59e9d22f05921c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.0-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 86195673a5f2b3fbf0f75c73c40975a893fc42bf3d5c2a7cce9fb160704d9997
MD5 c0896743475f444dceaea6f942174732
BLAKE2b-256 b0c8e43b872d807ade267699b383d04927e4a1cca05268a43aa9ae0382b6f66a

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