Showing 28 verified skills. 284 preview entries are hidden until we confirm a real source. Show preview skills · Why?
Read, extract data from, and generate PDF documents programmatically
claude install anthropics/skills/pdfFull PDF lifecycle management - reading, text extraction, form filling, generation, and manipulation of PDF documents.
This is the actual SKILL.md file that powers this skill. Copy it to install.
---
name: pdf
description: |
Trigger when working with PDF files: reading, extracting text, generating
PDFs, or manipulating existing documents. Phrases: "read PDF", "extract
from PDF", "generate PDF", "parse PDF".
allowed-tools:
- Bash(command *)
- Read
- Write
- Edit
---
# PDF
Read, extract, and generate PDF documents. Handles text extraction, form
filling, generation, and manipulation.
## Prerequisites
- For reading: `pdftotext` (poppler-utils) or Python `PyPDF2`
- For generation: `weasyprint`, `puppeteer`, or `pdfkit`
## Steps
### Extract text from PDF
```bash
# Using poppler (fastest)
pdftotext input.pdf output.txt
# Using Python
python3 -c "
import PyPDF2
reader = PyPDF2.PdfReader('input.pdf')
for page in reader.pages:
print(page.extract_text())
"
```
### Generate PDF from HTML
```bash
# Using weasyprint
python3 -c "
from weasyprint import HTML
HTML(filename='report.html').write_pdf('report.pdf')
"
# Using puppeteer
node -e "
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('file:///path/to/report.html');
await page.pdf({ path: 'report.pdf', format: 'A4' });
await browser.close();
})();
"
```
### Merge PDFs
```python
from PyPDF2 import PdfMerger
merger = PdfMerger()
merger.append("file1.pdf")
merger.append("file2.pdf")
merger.write("merged.pdf")
merger.close()
```
## Notes
- Always check if the PDF is text-based or scanned (image-based)
- For scanned PDFs, use OCR: `tesseract` or `pytesseract`
- Large PDFs: process page by page to avoid memory issues
mkdir -p ~/.claude/skills/pdf-skill~/.claude/skills/pdf-skill/SKILL.mdResulting file structure:
~/.claude/
skills/
pdf-skill/
SKILL.md <-- skill definitionSkills are loaded automatically by Claude Code when you start a new session. The skill name and description in the frontmatter determine when Claude triggers it.
Recommended from shared domain, career, and tool overlap with PDF
Check your codebase for GDPR, SOC 2, and HIPAA compliance gaps
Both used by Software Engineer, Lawyer
Access customizable legal templates for common business agreements
Both used by Lawyer, Finance
Generate accurate privacy policies tailored to your application
Both used by Software Engineer, Lawyer
Automate any browser workflow - forms, navigation, data extraction
Both used by Software Engineer, Researcher
Spot risky clauses and missing protections in any contract
Both used by Lawyer, Finance
Control a browser from your AI editor - navigate, screenshot, interact
Both used by Software Engineer, Researcher