Welcome to PyMuPDF#
PyMuPDF is an enhanced Python binding for MuPDF – a lightweight PDF, XPS, and E-book viewer, renderer, and toolkit, which is maintained and developed by Artifex Software, Inc.
PyMuPDF is hosted on GitHub and registered on PyPI.
User Guide
How to Guide
- Text
- Images
- How to Make Images from Document Pages
- How to Increase Image Resolution
- How to Create Partial Pixmaps (Clips)
- How to Zoom a Clip to a GUI Window
- How to Create or Suppress Annotation Images
- How to Extract Images: Non-PDF Documents
- How to Extract Images: PDF Documents
- How to Handle Image Masks
- How to Make one PDF of all your Pictures (or Files)
- How to Create Vector Images
- How to Convert Images
- How to Use Pixmaps: Gluing Images
- How to Use Pixmaps: Making a Fractal
- How to Interface with NumPy
- How to Add Images to a PDF Page
- Annotations
- Drawing and Graphics
- Stories
- How to Add a Line of Text with Some Formatting
- How to use Images
- How to Read External HTML and CSS for a Story
- How to Output Database Content with Story Templates
- How to Integrate with Existing PDFs
- How to Make Multi-Columned Layouts and Access Fonts from Package pymupdf-fonts
- How to Make a Layout which Wraps Around a Predefined “no go area” Layout
- How to Output a Table
- How to Create a Simple Grid Layout
- How to Generate a Table of Contents
- How to Display a List from JSON Data
- Using the Alternative
Story.write*()
functions
- Journalling
- Multiprocessing
- Low-Level Interfaces
- Common Issues and their Solutions
API Reference
Other
Find out about PyMuPDF Utilities#
The GitHub repository PyMuPDF-Utilities contains a full range of examples, demonstrations and use cases.
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.