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

Uploaded Source

Built Distributions

pymupdf-1.26.4-cp39-abi3-win_amd64.whl (18.7 MB view details)

Uploaded CPython 3.9+Windows x86-64

pymupdf-1.26.4-cp39-abi3-win32.whl (17.1 MB view details)

Uploaded CPython 3.9+Windows x86

pymupdf-1.26.4-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.4-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.4-cp39-abi3-manylinux_2_28_aarch64.whl (23.5 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

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

Uploaded CPython 3.9+macOS 11.0+ ARM64

pymupdf-1.26.4-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.4.tar.gz.

File metadata

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

File hashes

Hashes for pymupdf-1.26.4.tar.gz
Algorithm Hash digest
SHA256 be13a066d42bfaed343a488168656637c4d9843ddc63b768dc827c9dfc6b9989
MD5 49c4acece6e70a8d108134e1f63573d1
BLAKE2b-256 9035031556dfc0d332d8e9ed9b61ca105138606d3f8971b9eb02e20118629334

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymupdf-1.26.4-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 0b6345a93a9afd28de2567e433055e873205c52e6b920b129ca50e836a3aeec6
MD5 8f6f29c7f2524365cc99b90ab0186911
BLAKE2b-256 d1c487d27b108c2f6d773aa5183c5ae367b2a99296ea4bc16eb79f453c679e30

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymupdf-1.26.4-cp39-abi3-win32.whl
Algorithm Hash digest
SHA256 51b38379aad8c71bd7a8dd24d93fbe7580c2a5d9d7e1f9cd29ebbba315aa1bd1
MD5 5a712b19f53469344f43c8352c9096b2
BLAKE2b-256 288cc201e4846ec0fb6ae5d52aa3a5d66f9355f0c69fb94230265714df0de65e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.4-cp39-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 299a49797df5b558e695647fa791329ba3911cbbb31ed65f24a6266c118ef1a7
MD5 d9b7a1b7ee848f21518d98086ae54663
BLAKE2b-256 7208035e9d22c801e801bba50c6745bc90ba8696a042fe2c68793e28bf0c3b07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.4-cp39-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 973a6dda61ebd34040e4df3753bf004b669017663fbbfdaa294d44eceba98de0
MD5 cf7f210fd4ca2b435259c21ee0e223c5
BLAKE2b-256 4ec6d3cfafc75d383603884edeabe4821a549345df954a88d79e6764e2c87601

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.4-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2604f687dd02b6a1b98c81bd8becfc0024899a2d2085adfe3f9e91607721fd22
MD5 a115e35274be597e1f22d647a3600f8c
BLAKE2b-256 d8130916e8e02cb5453161fb9d9167c747d0a20d58633e30728645374153f815

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.4-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 67e9e6b45832c33726651c2a031e9a20108fd9e759140b9e843f934de813a7ff
MD5 d514c5fc0cd44b10c89c72fbda2ae8b0
BLAKE2b-256 fcb09a451d837e1fe18ecdbfbc34a6499f153c8a008763229cc634725383a93f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymupdf-1.26.4-cp39-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 cb95562a0a63ce906fd788bdad5239063b63068cf4a991684f43acb09052cb99
MD5 7262c57fedaa9d417d5b85a163e79092
BLAKE2b-256 27ae3be722886cc7be2093585cd94f466db1199133ab005645a7a567b249560f

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