pdf2img

Convert multi-page PDFs into a single vertical long image by concatenating all pages. Use when the user asks to convert PDF to long image, combine PDF pages...

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 128 · 1 current installs · 1 all-time installs
bykiefer@kieferHuan
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the included Python script and SKILL.md. Required libraries (pymupdf, pillow) are appropriate for PDF rendering and image composition; no extraneous binaries, credentials, or unrelated resources are requested.
Instruction Scope
SKILL.md instructs the agent to run the included script with the PDF input and optional scale/output arguments. The instructions only reference the script path and expected dependencies; they do not read unrelated files, environment variables, or send data to external endpoints.
Install Mechanism
This is instruction-only with no install spec. SKILL.md recommends installing pymupdf and pillow via pip (uv pip). No remote downloads or archive extraction are performed by the skill itself.
Credentials
No environment variables, credentials, or config paths are requested. The skill does not require access to unrelated secrets or system configuration.
Persistence & Privilege
always is false and the skill is user-invocable; autonomous model invocation is allowed (default) but there is no evidence this skill needs persistent elevated presence or modifies other skills or system settings.
Assessment
This skill appears to do exactly what it claims: run a local Python script that renders PDF pages and concatenates them. Before installing, ensure you are comfortable running Python code from this skill and install the listed dependencies (pymupdf, pillow). Be aware that very long output images can be large in memory/disk use. If you need higher assurance, inspect the included script file yourself (it is short and readable) or run it in a sandboxed environment.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.0.0
Download zip
latestvk974r39vmmyjr5h425nck28ars82qq0p

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

SKILL.md

PDF to Long Image

Convert multi-page PDFs into a single vertical long image, useful for sharing documents as scrolling images or creating visual summaries.

Quick Start

# Basic usage
uv run python ~/.openclaw/skills/pdf-to-long-image/scripts/pdf_to_long_image.py input.pdf

# Specify output path
uv run python ~/.openclaw/skills/pdf-to-long-image/scripts/pdf_to_long_image.py input.pdf output.png

# Higher resolution
uv run python ~/.openclaw/skills/pdf-to-long-image/scripts/pdf_to_long_image.py input.pdf output.png --scale 3

How It Works

  1. Opens the PDF using pymupdf (fitz)
  2. Renders each page at the specified scale (default 2x for clarity)
  3. Vertically concatenates all pages into a single image
  4. Saves as optimized PNG

Options

OptionDefaultDescription
input(required)Path to the PDF file
outputinput_long.pngOutput image path
--scale2.0Render scale factor (higher = more detail)

Dependencies

The script requires these packages (install with uv):

uv pip install pymupdf pillow

Example Output

Converting 32 pages from document.pdf...
  Page 1/32: 1684x1190
  Page 2/32: 1684x1190
  ...
Done! Saved to: document_long.png
  Dimensions: 1684x38112 pixels
  File size: 11.23 MB

Script Location

~/.openclaw/skills/pdf-to-long-image/scripts/pdf_to_long_image.py

Files

2 total
Select a file
Select a file to preview.

Comments

Loading comments…