pdf-to-images

pdf-to-images is a skill for Claude Code from danielrosehill/Claude-Image-Production-Plugin. It costs 51 tokens per session (1,013 once invoked), scanned B, original, MIT.

A converter that turns each page of a PDF into a separate raster image, meaning a picture made from pixels. It supports JPEG, PNG, or TIFF output, selected resolutions, and optional page ranges.

In plain words
What is it for?
Converting scanned documents into image files, exporting selected pages, making low-resolution previews, and creating high-resolution image sequences.
Why use it?
It makes PDF pages usable as standalone images for editing, archiving, previews, or distribution, without requiring text extraction.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the image-production plugin — 29 skills, 19 commands shipped together

Good fit Converting scanned documents into image files, exporting selected pages, making low-resolution previews, and creating high-resolution image sequences.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danielrosehill/claude-image-production-plugin/pdf-to-images
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add danielrosehill/Claude-Image-Production-Plugin --skill pdf-to-images
Clone the repo
git clone --depth 1 https://github.com/danielrosehill/Claude-Image-Production-Plugin

Made for: Claude Code.

Or install image-production, the plugin that ships this one along with the rest of its 29 skills, 19 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pdf-to-images

README.md
[![agentmods](https://agentmods.dev/badge/skills/danielrosehill/claude-image-production-plugin/pdf-to-images/github.svg)](https://agentmods.dev/skills/danielrosehill/claude-image-production-plugin/pdf-to-images)
Your own site
<a href="https://agentmods.dev/skills/danielrosehill/claude-image-production-plugin/pdf-to-images"><img src="https://agentmods.dev/badge/skills/danielrosehill/claude-image-production-plugin/pdf-to-images/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pdf-to-images

Your own site · 80×15
<a href="https://agentmods.dev/skills/danielrosehill/claude-image-production-plugin/pdf-to-images"><img src="https://agentmods.dev/badge/skills/danielrosehill/claude-image-production-plugin/pdf-to-images.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,013 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01013
Opus 5 $0.00026 $0.00507
Sonnet 5 $0.00010 $0.00203
Haiku 4.5 $0.00005 $0.00101

Measured 12d ago against content hash ba0a61abe6f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

pdf-to-images scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

command -v pdftoppm || echo "pdftoppm not installed — install with: sudo apt install poppler-utils"
skills/pdf-to-images/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rasterize PDF to Images

Convert PDF pages to raster images (JPEG, PNG, or TIFF) using pdftoppm. Each page becomes a numbered image file. Different from pdf-extract-embedded-images — this rasterizes the entire page content.

When to use

  • Converting a scanned PDF or document PDF to standalone images for archival, editing, or distribution.
  • Extracting pages as thumbnails or preview images at lower DPI.
  • Creating image sequences from a multi-page PDF without needing OCR or text extraction.

Inputs to gather

  • Input PDF file — path to the PDF. Required.
  • DPI (resolution) — dots per inch. Default: 300 (suitable for archival and print). Ask if the user needs lower DPI for faster processing or smaller file size (e.g., 150 for thumbnails, 600 for high-quality scans).
  • Output formatjpeg, png, or tiff. Default: jpeg (good balance of size and quality). PNG for lossless, TIFF for archival.
  • Page range (optional) — ask if they want all pages or a subset. If a subset, capture start page and end page (e.g., pages 5–10).
  • Output directory — optional. Default: current directory.

Procedure

1. Check tooling

command -v pdftoppm || echo "pdftoppm not installed — install with: sudo apt install poppler-utils"

Abort if missing.

2. Validate PDF

file "<input.pdf>"
pdfinfo "<input.pdf>"  # shows page count, dimensions, etc.

If invalid, abort. Print page count for user awareness.

3. Build command

Base command:

pdftoppm -r <DPI> -<format> "<input.pdf>" "<output-prefix>"

Examples:

  • All pages, JPEG at 300 DPI: pdftoppm -r 300 -jpeg input.pdf output_
  • Pages 5–10, PNG at 150 DPI: pdftoppm -r 150 -png -f 5 -l 10 input.pdf output_
  • All pages, TIFF at 600 DPI: pdftoppm -r 600 -tiff input.pdf output_

Flags:

  • -r <DPI> — resolution in DPI.
  • -<format> — output format: jpeg, png, tiff.
  • -f <N> — first page (optional).
  • -l <N> — last page (optional).

4. Execute

Read the full file on GitHub · 94 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 94 lines · 51 tokens per session scan B ba0a61abe6f1

Subscribe to this mod's changes

pdf-to-images is a skill published in the GitHub repository danielrosehill/Claude-Image-Production-Plugin (17 stars, last pushed 25d ago), licensed MIT. It adds 51 tokens to every session and 1,013 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories