# Pdf Convert

> Convert between PDF and image formats. Use when: user asks to convert PDF pages to images (PNG/JPEG) or combine images into a PDF. NOT for: text extraction (use pdf_reader), PDF editing, or document format conversion (DOCX/HTML).

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

## Install

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

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

## About

# PDF Convert Skill

Convert PDF pages to images or combine images into a PDF.

## When to Use

✅ **USE this skill when:**
- "Convert this PDF to images"
- "Save page 3 as a PNG"
- "Make a PDF from these images"
- "Export PDF pages as JPEG"
- User wants to convert between PDF and image formats

## When NOT to Use

❌ **DON'T use this skill when:**
- Extracting text from PDF → use `pdf_reader`
- Creating PDF from text/markdown → use `pdf_writer`
- Converting to DOCX, HTML, etc. → use specialized converters
- Merging PDFs → use `pdf_merge`

## Usage/Commands

### Images to PDF

```bash
python {skill_path}/convert_pdf.py to-pdf OUTPUT_PDF IMAGE1 IMAGE2 [IMAGE3 ...] [options]
```

Options:
- `--dir PATH` — use all images from a directory
- `--fit` — fit images to page (default: actual size with margins)
- `--page-size A4|letter` — page size (default: A4)

### PDF to Images

```bash
python {skill_path}/convert_pdf.py to-images INPUT_PDF [options]
```

Options:
- `--pages "1-5"` — specific pages (default: all)
- `--output DIR` — output directory (default: same as input)
- `--img-format png|jpeg` — image format (default: png)
- `--dpi 150` — resolution (default: 150)

### Examples

- "Convert PDF to PNGs" → `python {skill_path}/convert_pdf.py to-images doc.pdf --output ./images/`
- "Make PDF from images" → `python {skill_path}/convert_pdf.py to-pdf album.pdf img1.png img2.jpg`
- "Page 3 as JPEG" → `python {skill_path}/convert_pdf.py to-images doc.pdf --pages 3 --img-format jpeg`

## Notes

- Install dependencies: `pip install PyPDF2 Pillow`
- `to-images` requires a PDF rendering library; falls back to a placeholder if pdf2image/poppler is unavailable
- Supported image inputs: PNG, JPEG, BMP, TIFF, GIF

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