# /pdf: Work with PDF files: extract, merge, fill and create

Source: https://trendhub.net/skills/anthropics-skills/pdf
Skill folder: https://github.com/anthropics/skills/tree/main/skills/pdf
Pack: Anthropic Agent Skills (https://trendhub.net/skills/anthropics-skills)
Works with: Claude Code

The pdf skill gives Claude a working playbook for PDF tasks: pulling text and tables, merging and splitting files, rotating pages, filling forms, handling encryption and generating new PDFs. It relies on Python libraries such as pypdf, pdfplumber and reportlab plus command-line tools like pdftotext and qpdf, with separate reference files for forms and advanced cases.

## When to use it

- You need text or tables extracted from a PDF into another format
- Several PDFs must be combined, split by page range, or rotated
- A PDF form has to be filled in, or a new PDF report generated from data

## How it works

1. **Identify the task**: Claude matches the request to a reading, editing, form-filling or creation path.
2. **Pick the tool**: It chooses a Python library or CLI tool suited to that operation.
3. **Load extra guidance**: For forms or advanced features it reads the bundled FORMS.md or REFERENCE.md first.
4. **Write the output**: It runs the code and saves the resulting PDF or extracted data to disk.

## What it steers the agent away from

- Losing table structure when extracting content
- Broken text from Unicode sub- and superscripts in generated PDFs
- Guessing at form field handling instead of following a tested procedure

## What it can touch

Reads and writes local PDF and output files, runs Python scripts using pypdf, pdfplumber, reportlab and pandas, and calls installed command-line tools such as pdftotext, qpdf and, if present, pdftk. These tools must be available in your environment.

## Pairs well with

- `/docx`
- `/xlsx`
- `/pptx`

## Questions

### Can it handle scanned PDFs?

Its description lists OCR on scanned PDFs among supported tasks, which depends on the OCR tooling available in your environment.

### What license is the pdf skill under?

The README states the document skills, including pdf, are open source under Apache 2.0, and the folder ships its own LICENSE.txt with that license.
