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

Uploaded Source

Built Distributions

pymupdf-1.25.2-cp39-abi3-win_amd64.whl (16.5 MB view details)

Uploaded CPython 3.9+ Windows x86-64

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

Uploaded CPython 3.9+ Windows x86

pymupdf-1.25.2-cp39-abi3-musllinux_1_2_x86_64.whl (21.1 MB view details)

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

pymupdf-1.25.2-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.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (19.4 MB view details)

Uploaded CPython 3.9+ manylinux: glibc 2.17+ ARM64

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

Uploaded CPython 3.9+ macOS 11.0+ ARM64

pymupdf-1.25.2-cp39-abi3-macosx_10_9_x86_64.whl (19.3 MB view details)

Uploaded CPython 3.9+ macOS 10.9+ x86-64

File details

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

File metadata

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

File hashes

Hashes for pymupdf-1.25.2.tar.gz
Algorithm Hash digest
SHA256 9ea88ff1b3ccb359620f106a6fd5ba6877d959d21d78272052c3496ceede6eec
MD5 88b8c8ff3e230f7bfd93463a87d719dc
BLAKE2b-256 40fcdd8776dc5c2f8cf0e51cf81a5f1de3840996bed7ca03ec768b0733024fb9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymupdf-1.25.2-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1b4ca6f5780d319a08dff885a5a0e3585c5d7af04dcfa063c535b88371fd91c1
MD5 3255481a6d9b721cbe3be7d379ae8dbf
BLAKE2b-256 648e1d0ff215b37343c7e0bec4d571f1413e4f76a416591276b97081f1814710

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pymupdf-1.25.2-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.0.1 CPython/3.11.10

File hashes

Hashes for pymupdf-1.25.2-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 b9488c8b82bb9be36fb13ee0c8d43b0ddcc50af83b61da01e6040413d9e67da6
MD5 1f594647c61316780ff859f3b2e69698
BLAKE2b-256 efacfc4f37c7620a20d25443868ed665291e96f283eda068cda673e9edebf5f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.25.2-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 295505fe1ecb7c7b57d4124d373e207ea311d8e40bc7ac3016d8ec2d60b091e9
MD5 ec484d6fff5ebed24acf077649d83219
BLAKE2b-256 9dd3a8a09b550c62306c76e1c2d892c0890287470164d7941aea35330cceee4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.25.2-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 ae8cfa7a97d78f813d286ecba32369059d88073edd1e5cf105f4cd0811f71925
MD5 43906c9f60321dc7005b2c3f2498e4ae
BLAKE2b-256 0ede35fde3d49e0d187b95ab64cc61b4d275ebc7fd4f45e152b206b0e17e6b69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.25.2-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 f61e5cdb25b86eb28d34aa3557b49ecf9e361d5f5cd3b1660406f8f0bf813af7
MD5 de0947163703369895beba0aea161b4c
BLAKE2b-256 9d27557ee235aded5185e4824459e1540142fbb9323e1b83f77cbefe2e2c4e1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.25.2-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e8b8a874497cd0deee89a6a4fb76a3a08173c8d39e88fc7cf715764ec5a243e9
MD5 ac7b5c269a81354cc85b90cde8cffadb
BLAKE2b-256 4fecc7f742f56ee42be27b3afdbf3364da12f03e309f6638e666a7816d9eef23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.25.2-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 59dea22b633cc4fc13670b4c5db50d71f8cd4f420814420f33ce47ddcb61e1f6
MD5 55a413fb08be43853f00020ae40b7869
BLAKE2b-256 24348c3d82719d118beb48fded78fcab7cbe9ac3bf1906dc87a9ca4fd950087d

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