PyMuPDF Pro

Enhance PyMuPDF capability with Office document support.

PyMuPDF Pro offers all the features of PyMuPDF, plus enhanced functionality to support Office documents.

  • Load, parse and extract text data from Office files

  • Ablility to render Office files

Office file support

In addition to the standard file types supported by PyMuPDF, PyMuPDF Pro supports:

DOC/DOCX

XLS/XLSX

PPT/PPTX

HWP/HWPX

_images/icon-docx.svg _images/icon-xlsx.svg _images/icon-pptx.svg _images/icon-hangul.svg

Usage

Installation

Install via pip with:

pip install pymupdfpro

Loading an Office document

Import PyMuPDF Pro and you can then reference Office documents directly, e.g.:

import pymupdf.pro
pymupdf.pro.unlock()
# PyMuPDF has now been extended with PyMuPDF Pro features, with some restrictions.
doc = pymupdf.open("my-office-doc.xls")

Note

All standard PyMuPDF functionality is exposed as expected - PyMuPDF Pro handles the extended Office file types

From then on you can work with document pages just as you would do normally, but with respect to the restrictions.

Restrictions

PyMuPDF Pro functionality is restricted without a license key as follows:

Only the first 3 pages of any document will be available.

To unlock full functionality you should obtain a trial key.

Trial keys

To obtain a license key please fill out the form on this page. You will then have the trial key emailled to the address you submitted.

Using a key

Initialize PyMuPDF Pro with a key as follows:

import pymupdf.pro
pymupdf.pro.unlock(my_key)
# PyMuPDF has now been extended with PyMuPDF Pro features.

This will allow you to evaluate the product for a limited time. If you want to use PyMuPDF Pro after this time you should then enquire about obtaining a commercial license.


This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at artifex.com or contact Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States for further information.