extract-pdf

Extract structured markdown text and per-page PNG images from PDF files.

77|9|Updated Apr 5, 2026
One-click install
npx skills add https://github.com/KaihuaTang/Index.skill --skill extract-pdf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-pdf
Source: https://github.com/KaihuaTang/Index.skill/tree/main/.claude/skills/extract-pdf
Command: npx skills add https://github.com/KaihuaTang/Index.skill --skill extract-pdf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pymupdf4llm, pdfminer.six, pymupdf, and includes scripts (resource) components.

What problem does it solve?

It converts PDFs into Claude-readable content without losing structure, figures, tables, or scanned-page visuals that naive text extraction often mangles.

Core Features & Use Cases

  • Structured Markdown extraction: Preserves headings, lists, and tables so you can summarize and analyze like it’s a readable document.
  • Per-page rendered images: Produces PNGs so Claude can directly interpret charts, equations, and scanned pages in a multimodal way.
  • Complementary plain-text extraction: Uses a second extractor to recover text when the first pass misreads tricky layouts, encoding, or typography.
  • Use Case: When you ask Claude to “look inside this PDF,” this skill prepares a full workspace (manifest + files) for fast, reliable downstream reading and analysis.

Quick Start

Run the extract-pdf skill on your PDF at a given path or URL, writing outputs into an extraction folder, for example by instructing Claude to execute the provided command on your target PDF input.

Frequently Asked Questions about extract-pdf

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

FAQPage Schema
How do I extract structured markdown text from a PDF file?

Extracting structured markdown from a PDF uses pymupdf4llm to preserve headings, lists, and tables, outputting page-aligned markdown files. This ensures the original document layout is accurately represented for downstream summarization and analysis.

Can Claude read charts and equations from scanned PDF pages?

Claude can read charts and equations from scanned PDF pages because this skill renders each page into a PNG image using PyMuPDF. This enables multimodal visual interpretation of complex figures, math, and scanned content alongside the extracted text.

What is the best way to parse complex PDF tables without losing formatting?

Parsing complex PDF tables without losing formatting is best achieved through a dual-extraction approach. This skill uses pymupdf4llm for structured markdown capture and pdfminer.six as a complementary plain-text fallback to recover text from tricky layouts or misread typography.

Does this PDF extraction method work with locally saved files and URLs?

This PDF extraction method works with both locally saved files and URLs. You can instruct the skill to execute its rendering command on a target PDF input path or URL, which generates an extraction workspace containing a manifest.json plus aligned markdown and PNG files.

Why does my PDF text extraction mangle encoding and tricky layouts?

PDF text extraction mangles encoding and tricky layouts when relying on a single parser. This skill mitigates the issue by applying pdfminer.six as a complementary plain-text extractor to recover text when the primary markdown extraction misreads typography or complex document structures.