# PDF

> Use when the user wants to create, merge, split, or extract text from PDF files.

- Skill: `anujkumar8076/pdf` (Agent Skill)
- Install (CLI): `npx skillmds@latest add anujkumar8076/pdf`
- Raw SKILL.md: https://api.skillmd.com/api/skills/anujkumar8076/pdf/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: anujkumar8076 (https://skillmd.com/u/anujkumar8076)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/anujkumar8076/pdf

---

# PDF Skill

Create new PDFs and manipulate existing ones.

## Setup

```bash
pip install pypdf reportlab
```

## Merging PDFs

Use `pypdf.PdfWriter`, append each input file in order, and write the merged
result to a new file.

## Splitting a PDF

Read the source with `PdfReader`, then write each page (or page range) to its
own `PdfWriter` output.

## Extracting text

Call `page.extract_text()` per page. For scanned documents this returns empty
text — tell the user OCR is needed rather than returning blank output.

## Output format

Write results next to the input file unless the user names a destination.

