extracting-pdf-text — install extracting-pdf-text skill extracting-pdf-text, credit-card-extraction, community, install extracting-pdf-text skill, ide skills, PDF OCR for AI agents pytesseract, Mistr PDF extraction, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Language Model Agents needing high-quality text extraction from diverse PDF sources. extracting-pdf-text is an AI Agent skill that provides tools and guidance for converting PDF content into text consumable by Large Language Models. It offers a quick decision guide and specific Python scripts for different PDF types, including simple text, tables, and scanned documents.

Features

Provides a Quick Decision Guide for selecting the optimal extraction method
Includes `extract_pymupdf.py` script for simple text-based PDFs using PyMuPDF
Offers `extract_pdfplumber.py` script for handling PDFs containing tables
Supports OCR via `extract_with_ocr.py` using pytesseract for scanned/image PDFs
References Mistr for complex layouts requiring the highest accuracy

# Core Topics

miwtoo miwtoo
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The extracting-pdf-text skill by miwtoo is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for install extracting-pdf-text skill, PDF OCR for AI agents pytesseract, Mistr PDF extraction.

Ideal Agent Persona

Perfect for Language Model Agents needing high-quality text extraction from diverse PDF sources.

Core Value

Empowers agents to extract text from PDFs using libraries like PyMuPDF, pdfplumber, and pytesseract, supporting formats suitable for language model consumption, including simple text, tables, and scanned/image PDFs with OCR capabilities.

Capabilities Granted for extracting-pdf-text

Extracting text from simple PDF documents using PyMuPDF
Parsing tables from PDFs with pdfplumber
Converting scanned PDFs to text with pytesseract OCR

! Prerequisites & Limits

  • Requires Python environment
  • Dependent on library compatibility (PyMuPDF, pdfplumber, pytesseract)
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

extracting-pdf-text

Install extracting-pdf-text, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Extracting PDF Text for LLMs

This skill provides tools and guidance for extracting text from PDFs in formats suitable for language model consumption.

Quick Decision Guide

PDF TypeBest ApproachScript
Simple text PDFPyMuPDFscripts/extract_pymupdf.py
PDF with tablespdfplumberscripts/extract_pdfplumber.py
Scanned/image PDF (local)pytesseractscripts/extract_with_ocr.py
Complex layout, highest accuracyMistral OCR APIscripts/extract_mistral_ocr.py
End-to-end RAG pipelinemarker-pdfpip install marker-pdf
  1. Try PyMuPDF first - fastest, handles most text-based PDFs well
  2. If tables are mangled - switch to pdfplumber
  3. If scanned/image-based - use Mistral OCR API (best accuracy) or local OCR (free but slower)

Local Extraction (No API Required)

PyMuPDF - Fast General Extraction

Best for: Text-heavy PDFs, speed-critical workflows, basic structure preservation.

bash
1uv run scripts/extract_pymupdf.py input.pdf output.md

The script outputs markdown with preserved headings and paragraphs. For LLM-optimized output, it uses pymupdf4llm which formats text for RAG systems.

pdfplumber - Table Extraction

Best for: PDFs with tables, financial documents, structured data.

bash
1uv run scripts/extract_pdfplumber.py input.pdf output.md

Tables are converted to markdown format. Note: pdfplumber works best on machine-generated PDFs, not scanned documents.

Local OCR - Scanned Documents

Best for: Scanned PDFs when API access is unavailable.

bash
1uv run scripts/extract_with_ocr.py input.pdf output.txt

Requires: pytesseract, pdf2image, and Tesseract installed (brew install tesseract on macOS).

API-Based Extraction

Mistral OCR API

Best for: Complex layouts, scanned documents, highest accuracy, multilingual content, math formulas.

Pricing: ~1000 pages per dollar (very cost-effective)

bash
1export MISTRAL_API_KEY="your-key" 2uv run scripts/extract_mistral_ocr.py input.pdf output.md

Features:

  • Outputs clean markdown
  • Preserves document structure (headings, lists, tables)
  • Handles images, math equations, multilingual text
  • 95%+ accuracy on complex documents

For detailed API options and other services, see references/api-services.md.

Output Format Recommendations

For LLM consumption, markdown is preferred:

  • Preserves semantic structure (headings become context boundaries)
  • Tables remain readable
  • Compatible with most RAG chunking strategies

For detailed comparisons of local tools, see references/local-tools.md.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is extracting-pdf-text?

Perfect for Language Model Agents needing high-quality text extraction from diverse PDF sources. extracting-pdf-text is an AI Agent skill that provides tools and guidance for converting PDF content into text consumable by Large Language Models. It offers a quick decision guide and specific Python scripts for different PDF types, including simple text, tables, and scanned documents.

How do I install extracting-pdf-text?

Run the command: npx killer-skills add miwtoo/credit-card-extraction. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for extracting-pdf-text?

Key use cases include: Extracting text from simple PDF documents using PyMuPDF, Parsing tables from PDFs with pdfplumber, Converting scanned PDFs to text with pytesseract OCR.

Which IDEs are compatible with extracting-pdf-text?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for extracting-pdf-text?

Requires Python environment. Dependent on library compatibility (PyMuPDF, pdfplumber, pytesseract).

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add miwtoo/credit-card-extraction. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use extracting-pdf-text immediately in the current project.

Related Skills

Looking for an alternative to extracting-pdf-text or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI