Skip to content
Back to skills

Pdf Screenshot

ASecurity

Render PDF pages or cropped regions to PNG images for visual verification.

  • 6 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
testingbashaws

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add grahama1970/agent-skills --skill pdf-screenshot --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pdf Screenshot?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pdf Screenshot
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/grahama1970-pdf-screenshot/badge)](https://www.skillsdirectory.com/skills/grahama1970-pdf-screenshot)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pdf-screenshot
description: Render PDF pages or cropped regions to PNG images for visual verification.
triggers:
  - screenshot pdf
  - snapshot pdf
  - render pdf page
  - show me the pdf
  - verify pdf element
  - calibrate pdf extraction
  - pdf visual check
  - screenshot page
  - capture pdf region

provides:
  - pdf-screenshot
composes:
  - task-monitor
  - agentic-evals
disciplines:
  - extraction
  - developer-tooling
---

# PDF Screenshot

This skill renders pages or specific regions (bounding boxes) of a PDF into PNG images. It is designed for human-agent collaboration workflows where the agent needs to show the human what it has detected (e.g., tables, figures) for verification or calibration.

## Usage

### Full Page Screenshot

```bash
/pdf-screenshot /path/to/doc.pdf --page 5
```

Saves to `/tmp/pdf-screenshot/doc_page5.png` (or custom path).

### Cropped Region (Bounding Box)

```bash
/pdf-screenshot /path/to/doc.pdf --page 5 --bbox "72,200,540,400"
```

Saves to `/tmp/pdf-screenshot/doc_page5_crop.png`.
Bounding box format: `x0, y0, x1, y1`.
A default padding of 20px is added to the crop.

### Custom Output Path

```bash
/pdf-screenshot /path/to/doc.pdf --page 5 --out /tmp/my_screenshot.png
```

### Highlight Region

```bash
/pdf-screenshot doc.pdf --page 5 --highlight "72,200,540,400"
```

Draws a red rectangle around the specified region. Useful for visual verification without cropping.

### Batch Processing

```bash
# Specific pages
/pdf-screenshot doc.pdf --pages 1,3,5 --out ./screenshots/

# All pages
/pdf-screenshot doc.pdf --all --out ./screenshots/
```

If `--out` is a directory (ends in `/`), files are named automatically (e.g., `doc_page1.png`).

## Arguments

- `pdf_path`: Path to the input PDF file.
- `--page`: Single page number (0-indexed).
- `--pages`: Comma-separated list of page numbers (e.g. `1,3,5`).
- `--all`: Process all pages in the document.
- `--bbox`: Optional crop bounding box `x0,y0,x1,y1`.
- `--highlight`: Optional highlight bounding box `x0,y0,x1,y1` (red stroke).
- `--out`: Optional output path or directory.
- `--dpi`: Rendering DPI (default 150).

## Dependencies

- `pymupdf` (fitz)

Files in this skill

  • SKILL.md2.1 KB
  • fixtures/agentic_eval.json492 B
  • pdf_screenshot.py4.8 KB
  • pyproject.toml242 B
  • run.sh710 B
  • sanity.sh1.7 KB
  • uv.lock9.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.