pdf2img
v1.0.0Convert 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 into one image, or 创建 a scrolling screenshot from a PDF document.
运行时依赖
安装命令
点击复制技能文档
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 启动 # Basic usage uv 运行 python ~/.OpenClaw/技能s/pdf-to-long-image/scripts/pdf_to_long_image.py 输入.pdf
# Specify 输出 path uv 运行 python ~/.OpenClaw/技能s/pdf-to-long-image/scripts/pdf_to_long_image.py 输入.pdf 输出.png
# Higher resolution uv 运行 python ~/.OpenClaw/技能s/pdf-to-long-image/scripts/pdf_to_long_image.py 输入.pdf 输出.png --扩展 3
How It Works Opens the PDF using pymupdf (fitz) Renders each page at the specified 扩展 (default 2x for clarity) Vertically concatenates all pages into a single image Saves as 优化d PNG Options Option Default Description 输入 (required) Path to the PDF file 输出 输入_long.png 输出 image path --扩展 2.0 Render 扩展 factor (higher = more detAIl) Dependencies
The script requires these packages (安装 with uv):
uv pip 安装 pymupdf pillow
Example 输出 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/技能s/pdf-to-long-image/scripts/pdf_to_long_image.py