Install
openclaw skills install smart-image-to-pdfCombine multiple image screenshots into a paginated A4 PDF. Intelligently handles page breaks to avoid cutting through text. Use when the user wants to combine, merge, or stitch images/screenshots into a PDF, especially exam papers or documents.
openclaw skills install smart-image-to-pdfCombine multiple image screenshots (typically exam paper questions) into a well-formatted, paginated A4 PDF that is ready for printing.
Trigger this skill when the user wants to:
Look for phrases like: "拼到一起", "合成PDF", "拼接", "打印", "combine images", "merge into PDF", etc.
This skill includes a Python script at scripts/combine.py (relative to this SKILL.md).
From the user's request, extract:
output.pdf in the input directory)Use uv run to handle dependencies automatically (no manual install needed):
uv run --with Pillow --with numpy python3 <path-to-this-skill>/scripts/combine.py <input> -o <output.pdf>
Input formats:
python scripts/combine.py ./my_images/ -o result.pdfpython scripts/combine.py img1.png img2.png -o result.pdfOptional flags:
--margin <px>: page margin in pixels at 300dpi (default: 80, ~7mm)--no-trim: disable automatic whitespace border trimming--dpi <n>: output DPI (default: 300)Tell the user: