# Pdf Merge

> Merge multiple PDF files into a single PDF. Use when: user asks to combine, join, or concatenate PDFs. Supports page selection and ordering. NOT for: splitting PDFs, editing content, or converting formats.

- **Type:** Skill
- **Install:** `agentstack add skill-ericwang915-pythonclaw-pdf-merge`
- **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_merge
- **Website:** https://github.com/ericwang915/PythonClaw

## Install

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

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

## About

# PDF Merge Skill

Merge multiple PDF files into one combined document using PyPDF2.

## When to Use

✅ **USE this skill when:**
- "Merge these PDFs together"
- "Combine report1.pdf and report2.pdf"
- "Join all PDFs in this folder"
- "Append this PDF to the end of another"
- User wants to create a single PDF from multiple source PDFs

## When NOT to Use

❌ **DON'T use this skill when:**
- Splitting a single PDF → use `pdf_split`
- Creating a PDF from text → use `pdf_writer`
- Extracting text from PDF → use `pdf_reader`
- Converting PDF to images → use `pdf_convert`

## Usage/Commands

```bash
python {skill_path}/merge_pdf.py OUTPUT_PATH INPUT1 INPUT2 [INPUT3 ...] [options]
```

Options:
- `--pages "1:1-3,2:5-10"` — select specific pages per input file (1-indexed, file_index:page_range)
- `--dir PATH` — merge all PDFs in a directory (alphabetical order)
- `--reverse` — reverse the input order
- `--format json` — output result as JSON

### Examples

- "Merge a.pdf and b.pdf" → `python {skill_path}/merge_pdf.py combined.pdf a.pdf b.pdf`
- "Merge all PDFs in reports/" → `python {skill_path}/merge_pdf.py combined.pdf --dir reports/`
- "Combine only pages 1-3 of first and 5-10 of second" → `python {skill_path}/merge_pdf.py out.pdf a.pdf b.pdf --pages "1:1-3,2:5-10"`

## Notes

- Install dependency: `pip install PyPDF2`
- Input files must be valid PDFs
- Preserves bookmarks and links when possible

## 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-merge
- 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%.
