Skip to content
Back to skills

Pdf Reader

ASecurity

Reads and extracts text from PDF files with the local PyMuPDF workflow, including page-level inspection. Use when the user gives a .pdf path and asks to read it, summarize it, extract its text, or find out what a specific page contains.

  • 37 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 5, 2026
ai-agentspythonbash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 5, 2026

npx -y skills add Vepricov/claude-brainlab --skill pdf-reader --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pdf Reader?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pdf Reader
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vepricov-pdf-reader/badge)](https://www.skillsdirectory.com/skills/vepricov-pdf-reader)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pdf-reader
description: "Reads and extracts text from PDF files with the local PyMuPDF workflow, including page-level inspection. Use when the user gives a .pdf path and asks to read it, summarize it, extract its text, or find out what a specific page contains."
---

# PDF Reader

Extract text from PDF files using open-source tools. PyMuPDF (fitz) is the primary engine with pypdf as fallback.

## When to use

- User provides a `.pdf` file path and asks to read or extract its contents
- User asks to summarize a PDF
- User asks what a PDF document contains
- Academic papers, reports, or any PDF documents

## When NOT to use

- URLs pointing to web pages (use `defuddle` skill instead)
- Image files (use image analysis tools)
- Already-extracted text files

## Workflow

### 1. Extract text

Run the extraction script:

```bash
python3 ~/.claude/skills/pdf-reader/scripts/extract_pdf.py <pdf_path>
```

Options:
- `-p, --pages` — extract specific pages, e.g. `1-5` or `1,3,7`
- `-m, --method` — force `fitz` or `pypdf` (default: auto)
- `--json` — output structured JSON with metadata
- `--metadata-only` — print only title, author, page count

### 2. For large PDFs

Extract in chunks to avoid token overflow:
- First run with `--metadata-only` to check page count
- Then extract page ranges with `-p 1-10`, `-p 11-20`, etc.

### 3. For scanned PDFs (image-based)

If extracted text is empty or garbled, the PDF is likely scanned. Inform the user that OCR is needed. Consider suggesting `marker` or `ocrmypdf` as next steps.

## Quality notes

- PyMuPDF preserves font size and bold formatting as markdown headers and bold text
- pypdf is the fallback and produces plain text only
- Both handle multi-column layouts as single-column output (reading order)
- Tables are extracted as plain text, not as structured tables

Files in this skill

  • SKILL.md1.8 KB
  • scripts/extract_pdf.py5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.