PDF Extraction

Extract text, tables, and metadata from PDFs using pdfplumber

581 stars 105 forksDocuments & Office Files

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add claude-office-skills/skills --skill pdf-extraction
Manual install
git clone --depth 1 https://github.com/claude-office-skills/skills.git /tmp/skills
mkdir -p ~/.claude/skills
cp -r /tmp/skills/pdf-extraction ~/.claude/skills/pdf-extraction

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# PDF Extraction Skill

## Overview

This skill enables precise extraction of text, tables, and metadata from PDF documents using **pdfplumber** - the go-to library for PDF data extraction. Unlike basic PDF readers, pdfplumber provides detailed character-level positioning, accurate table detection, and visual debugging.

## How to Use

1. Provide the PDF file you want to extract from
2. Specify what you need: text, tables, images, or metadata
3. I'll generate pdfplumber code and execute it

**Example prompts:**
- "Extract all tables from this financial report"
- "Get text from pages 5-10 of this document"
- "Find and extract the invoice total from this PDF"
- "Convert this PDF table to CSV/Excel"

## Domain Knowledge

### pdfplumber Fundamentals

```python
import pdfplumber

# Open PDF
with pdfplumber.open('document.pdf') as pdf:
    # Access pages
    first_page = pdf.pages[0]
    
    # Document metadata
    print(pdf.metadata)
    
    # Number of pages
    print(len(pdf.pages))
```

### PDF Structure
```
PDF Document
├── metadata (title, author, creation date)
├── pages[]
│   ├── chars (individual characters with position)
│   ├── words (grouped characters)
│   ├── lines (horizontal/vertical lines)
│   ├── rects (rectangles)
│   ├── curves (bezier curves)
│   └── images (embedded images)
└── outline (bookmarks/TOC)
```

### Text Extraction

#### Basic Text
Read the full skill on GitHub

Details

Skill name
pdf-extraction
Path
pdf-extraction/SKILL.md
License
MIT
Repo updated
31 January 2026

FAQ

What does the PDF Extraction skill do?

Extract text, tables, and metadata from PDFs using pdfplumber

How do I install the PDF Extraction skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add claude-office-skills/skills --skill pdf-extraction. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is PDF Extraction popular?

It lives in claude-office-skills/skills, which has 581 GitHub stars and 105 forks.

Related skills

Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.