pdf

Work with PDFs: extract text and tables, merge/split, fill forms, convert formats.

pdf is for handling and delivering fixed-layout files: merging, splitting, extracting tables, filling forms, encrypting. It's bad at editing body text — layout is fixed coordinates, and one changed sentence can reflow a page. To change content, go back to docx.

Office documentsagents 2Proprietary (Anthropic) index only Scan upstream repo ↗

Upstream:anthropics/skills · ★ 201701 · last commit 2026-11-16 (12d)

What it is

pdf handles PDF files: extracting text and tables, splitting and merging, filling forms, and generating PDFs from other formats. It is a read-and-convert tool, not a layout tool.

Core workflow

StageContent
Triggerany .pdf read/write, merge/split, forms, watermark, encrypt, OCR
Inputthe PDF plus the operation (pages, form fields, output format)
StepsPython scripts with pypdf/pdfplumber/reportlab; OCR has its own path; forms follow FORMS.md
Outputa new PDF, or extracted text/tables/images
Boundaryno fine layout editing; scans need OCR; encrypted files must be unlocked first

Getting started

  1. Name the pages or section — don’t ask it to read the whole file;
  2. When extracting tables, specify the target columns and units;
  3. Confirm font embedding before exporting PDFs.

Traits

  • Library composition: pypdf (basics), pdfplumber (tables), reportlab (generation);
  • Progressive disclosure: REFERENCE.md for advanced use, FORMS.md for forms;
  • separate paths for text, tables and images;
  • examples for merge/split/rotate/watermark/encrypt.

Who it is for and who it is not for

Good fitPoor fit
Reviewing contract clauses or invoice details;; Pulling tables out of reports;; Filling forms, merging documents, exporting deliverables.Fine text editing (edit in docx, then export);; Poor-quality scans (run OCR first);; Encrypted or permission-restricted files.

How it differs

NeedUse
Read, extract, split, fillpdf
Edit body textdocx
Build a deckpptx
Tabular dataxlsx

Source-level risks

RiskSourceImpact
overwriting the inputmerge/split examples write outputsalways write to a new file
OCR dependency not declaredOverview mentions OCRfails without tesseract et al.
encryption/permissionsencryption chaptermishandling can lock a file
assumed form fieldsFORMS.md flowsilent failure on missing fields

Go to upstream repository ↗

Example: input and output

Input

Merge these three PDFs, keep pages 2–5 only, and add page numbers.

Output

Writes merged.pdf: concatenated in order, page ranges trimmed, footer numbered 1/4…4/4.

Check: page order; for scans, decide about OCR first or the result stays unsearchable.

FAQ

Can it edit text inside a PDF?

Limited: forms and annotations yes; changing body text usually means rebuilding the page.

Does it handle scans?

Only with OCR; without it, scans are images you can't search or cite.

Can it merge PDFs and add page numbers?

Yes — merge, split, crop, numbering and encryption are routine.

Common tasks

CategoryOffice documents
Version—
Agent supportClaude Code, Generic (reads SKILL.md)
OSmacOS / Linux / Windows
DependenciesPython runtime、PDF library
Environmentfile read/write
Scriptsnone
LicenseProprietary (Anthropic)
Sourceanthropics/skills ↗
Verificationto verify (check upstream before installing)
Get itGo to upstream · gh-proxy · jsDelivr

"Generic (agents that read SKILL.md)" means any agent that discovers and loads SKILL.md; support level (auto-discovery, manual config, script execution) varies by agent.

This entry isn't hosted here (license or size); use the accelerated mirror above or the upstream repo.

Install

This is an index entry: install it from the upstream repository using its instructions.

Skills directory example: ~/.claude/skills/ for Claude Code; other agents use wherever SKILL.md is discovered.

Comparison: which one?