# Pdf Split

> Split a PDF into separate files by page ranges. Use when: user asks to split, extract pages from, or break apart a PDF. Supports extracting single pages, ranges, or every-N-pages splitting. NOT for: merging PDFs, reading text, or converting formats.

- **Type:** Skill
- **Install:** `agentstack add skill-ericwang915-pythonclaw-pdf-split`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ericwang915](https://agentstack.voostack.com/s/ericwang915)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ericwang915](https://github.com/ericwang915)
- **Source:** https://github.com/ericwang915/PythonClaw/tree/main/pythonclaw/templates/skills/data/pdf_split
- **Website:** https://github.com/ericwang915/PythonClaw

## Install

```sh
agentstack add skill-ericwang915-pythonclaw-pdf-split
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# PDF Split Skill

Split a PDF file into multiple smaller PDFs by page ranges.

## When to Use

✅ **USE this skill when:**
- "Split this PDF into individual pages"
- "Extract pages 5-10 from report.pdf"
- "Break this PDF into 3 parts"
- "Get page 7 as a separate PDF"
- User wants to extract or separate pages from a PDF

## When NOT to Use

❌ **DON'T use this skill when:**
- Merging multiple PDFs → use `pdf_merge`
- Reading/extracting text → use `pdf_reader`
- Creating new PDFs → use `pdf_writer`
- Converting to images → use `pdf_convert`

## Usage/Commands

```bash
python {skill_path}/split_pdf.py INPUT_PDF [options]
```

Options:
- `--pages "1-5"` — extract a specific page range to a single output file
- `--each` — split into one PDF per page
- `--every N` — split into chunks of N pages each
- `--output DIR` — output directory (default: same as input)
- `--prefix NAME` — filename prefix for output files (default: input filename)
- `--format json` — output result as JSON

### Examples

- "Extract pages 5-10" → `python {skill_path}/split_pdf.py doc.pdf --pages 5-10`
- "Split into individual pages" → `python {skill_path}/split_pdf.py doc.pdf --each`
- "Split into chunks of 5 pages" → `python {skill_path}/split_pdf.py doc.pdf --every 5 --output ./parts/`
- "Get page 3" → `python {skill_path}/split_pdf.py doc.pdf --pages 3`

## Notes

- Install dependency: `pip install PyPDF2`
- Page numbers are 1-indexed
- Output files are named `{prefix}_p{start}-{end}.pdf`

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ericwang915](https://github.com/ericwang915)
- **Source:** [ericwang915/PythonClaw](https://github.com/ericwang915/PythonClaw)
- **License:** MIT
- **Homepage:** https://github.com/ericwang915/PythonClaw

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ericwang915-pythonclaw-pdf-split
- Seller: https://agentstack.voostack.com/s/ericwang915
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
