# Prepare agent-ready PDF and document extraction with PyMuPDF

> Use PyMuPDF to extract text, layout metadata, tables, images, Markdown, or JSON from PDFs and documents before an agent ingests or reviews them.

- Skill: `agentskillexchange/prepare-agent-ready-pdf-and-document-extraction-with-pymupdf` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/prepare-agent-ready-pdf-and-document-extraction-with-pymupdf`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/prepare-agent-ready-pdf-and-document-extraction-with-pymupdf/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/prepare-agent-ready-pdf-and-document-extraction-with-pymupdf

---


# Prepare agent-ready PDF and document extraction with PyMuPDF

Use PyMuPDF to extract text, layout metadata, tables, images, Markdown, or JSON from PDFs and documents before an agent ingests or reviews them.

## Prerequisites

Python 3.10+, PyMuPDF, source PDFs or supported document files, and optional pymupdf4llm or Tesseract OCR for LLM-ready Markdown or scanned pages.

## Installation

Use the upstream install or setup path that matches your environment:
- pip install pymupdf
- pip install pymupdf-fonts
- pip install pymupdf4llm
- pip install pymupdfpro

Requirements and caveats from upstream:
- [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pymupdf)](https://pypi.org/project/pymupdf/)
- [![Forum](https://img.shields.io/badge/Forum-ff6600?logo=python&logoColor=ffffff)](https://forum.mupdf.com/c/general/4?utm_source=github&utm_medium=referral&utm_campaign=pymupdf_github&utm_content=badges&utm_term=forum)
- [![Demo](https://img.shields.io/badge/PyMuPDF4LLM-live?badge&label=DEMO&logo=python&logoColor=ffffff)](https://demo.pymupdf.io?utm_source=github&utm_medium=referral&utm_campaign=pymupdf_github&utm_content=badges&utm_t...

Basic usage or getting-started notes:
- | Package | Purpose |
- |---|---|
- | pymupdf-fonts | Extended font collection for text output |

- Source: https://github.com/pymupdf/PyMuPDF
- Extracted from upstream docs: https://raw.githubusercontent.com/pymupdf/PyMuPDF/HEAD/README.md

## Documentation

- https://pymupdf.readthedocs.io/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/prepare-agent-ready-pdf-and-document-extraction-with-pymupdf/)

