Commercial extensions for PyMuPDF; enables Office document handling, including doc, docx, hwp, hwpx, ppt, pptx, xls, xls, and others. Supports text and table extraction, document conversion and more.
Actively maintained. Last release 4 months ago. A safe choice.
pip install pymupdfproPyMuPDF Pro
Overview
PyMuPDF Pro is a set of commercial extensions for PyMuPDF.
-
Enables Office document handling, including doc, docx, hwp, hwpx, ppt, pptx, xls, xlsx, and others.
-
Supports text and table extraction, document conversion and more.
-
Available for these platforms only:
- Windows x86_64.
- Linux x86_64 (glibc).
- Linux aarch64 (glibc).
- MacOS x86_64.
- MacOS arm64.
-
Supports Python 3.10+.
-
See https://artifex.com/products/pymupdf-pro/ for more.
Installation
pip install pymupdfpro
This will also install PyMuPDF.
Usage
Restricted usage without a key:
import pymupdf.pro
pymupdf.pro.unlock()
# PyMuPDF has now been extended with PyMuPDF Pro features, with some
# restrictions.
Unrestricted usage with a key from https://pymupdf.io/try-pro:
import pymupdf.pro
pymupdf.pro.unlock(my_key)
# PyMuPDF has now been extended with PyMuPDF Pro features.
- For more please see: https://pymupdf.readthedocs.io/en/latest/pymupdf-pro.html#usage
Changelog
PyMuPDFPro-1.28.2
-
Improve font handling on Linux/MacOS.
We now use Python package fontconfig_py. Previously we used internal build of libfontconfig, which failed if libfreetype was not available.
PyMuPDFPro-1.28.0
- Works with PyMuPDF-1.28.0.
- Use Marina version of SmartOffice.
- Added git build information in
pymupdf.pro._pro_build. - Added export functions:
- pymupdf.pro.office_to_json().
- pymupdf.pro.office_to_markdown().
- pymupdf.pro.office_to_pdf().
- pymupdf.pro.office_export().
PyMuPDFPro-1.27.2.3
- Works with PyMuPDF-1.27.2.3.
- Uses SmartOffice tag v3.16.79.
- Fix pymupdf #4159
PyMuPDF Pro 1.25.0: Image in .doc file unexpectedly overlaps with text when using get_pixmap()