pdf-reader-pdf4llm

Extract text and structured data from PDFs using PyMuPDF4LLM.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/mordechai30/.agents --skill pdf-reader-pdf4llm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf-reader-pdf4llm
Source: https://github.com/mordechai30/.agents/tree/main/skills/pdf-reader-pdf4llm
Command: npx skills add https://github.com/mordechai30/.agents --skill pdf-reader-pdf4llm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymupdf4llm, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill solves the challenge of accurately extracting text and structured data from PDF documents, including scanned or image-based files, while maintaining control over OCR usage and output formatting.

Core Features & Use Cases

  • Flexible Extraction: Convert PDF content into Markdown, JSON, or plain text formats.
  • Hybrid OCR: Selectively apply OCR only to pages that require it, ensuring high quality and performance.
  • Use Case: Use this tool to process a mix of digital and scanned documents for RAG pipelines or data analysis, ensuring that clean text is preserved while image-based content is accurately digitized.

Quick Start

Use the pdf-reader-pdf4llm skill to extract the content of the document located at path/to/document.pdf and display it as markdown.

Frequently Asked Questions about pdf-reader-pdf4llm

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text from a scanned PDF for RAG pipelines?

To extract text from a scanned PDF for RAG pipelines, this skill applies hybrid OCR selectively to image-based pages while preserving digital text, outputting clean Markdown or JSON for immediate use in data processing.

Can I convert PDF content to Markdown using PyMuPDF4LLM?

Yes, you can convert PDF content to Markdown using PyMuPDF4LLM. This skill leverages the library to extract structured data and text, providing output formatted directly as Markdown for seamless integration into document workflows.

Does pdf-reader-pdf4llm support JSON and plain text extraction?

Yes, pdf-reader-pdf4llm supports JSON and plain text extraction. It uses PyMuPDF4LLM to process documents and provides flexible output formatting, allowing you to choose between Markdown, JSON, or plain text depending on your requirements.

What is the best way to process a mix of digital and scanned PDF documents?

The best way to process a mix of digital and scanned PDF documents is using a hybrid OCR approach. This skill selectively applies OCR only to pages that require digitization, ensuring high quality and performance across diverse document types.

Do I need PyMuPDF Pro to extract structured data from PDFs?

You do not need PyMuPDF Pro to extract structured data from PDFs, as the skill requires only the PyMuPDF4LLM library for standard extraction. PyMuPDF Pro is optional and only needed for extended document format support.