Welcome to PyMuPDF

PyMuPDF is a layout-aware document engine for AI and a feature-rich Python toolkit for extracting, rendering and editing PDFs and other documents. Since version 2.0, its ML-based layout analysis turns PDFs and Office files into high-quality Markdown for RAG and agents, running fast on CPU and grounding every result to its source page.

PyMuPDF is hosted on GitHub and registered on PyPI.

Want to extract text from every scanned PDF added to a Google Drive folder?

See the Make workflow with PDF.co for an automated solution.


This documentation covers all versions up to 2.2.


How to Guide



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.