PDF to Long Image for Openclaw

A specialized tool that seamlessly concatenates multi-page PDF documents into a single, high-quality vertical image.

kieferhuan
v1.0.0
Mar 11, 2026
0
980
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pdf2image

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pdf2image using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is PDF to Long Image?

The PDF to Long Image skill is a technical utility designed for the Openclaw Skills ecosystem that solves the problem of fragmented document sharing. By rendering each page of a PDF and stitching them vertically, it creates a continuous scrolling image perfect for mobile viewing, social media sharing, or quick visual referencing.

Built with performance in mind, this tool leverages powerful Python libraries to ensure that even large documents are processed efficiently without losing text clarity or visual fidelity. It is an essential addition to any automated workflow that requires converting static documents into web-friendly long-form imagery.

PDF to Long Image Use Cases

  • Creating scrolling screenshots of long reports or academic papers for social media sharing.
  • Generating single-image visual summaries of multi-page presentations.
  • Archiving document contents into a single file for easy mobile previewing.
  • Automating the conversion of PDF invoices or receipts into a long-form image format for easier visual auditing.

How PDF to Long Image Works

  1. The skill initializes by opening the target PDF file using the pymupdf (fitz) engine.
  2. Each individual page is rendered into a high-resolution bitmap at a customizable scale factor.
  3. The rendered page buffers are vertically concatenated into a single image object using PIL (Pillow).
  4. The final long-form image is optimized and saved as a PNG file to ensure maximum compatibility and quality.

PDF to Long Image Setup

To get started with this skill, ensure you have the necessary dependencies installed via uv:

uv pip install pymupdf pillow

Basic usage involves calling the Python script directly from your Openclaw Skills directory:

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

PDF to Long Image Data Schema & Taxonomy

The skill follows a predictable input-output schema for easy integration into wider Openclaw Skills pipelines:

Parameter Type Default Value Description
Input File Path Required The source multi-page PDF document
Output File Path input_long.png The destination path for the stitched image
--scale Float 2.0 The multiplier for rendering resolution

All metadata, including dimensions and page counts, are logged to stdout during the conversion process.

PDF to Long Image Advanced Features

  • Custom Resolution Scaling: Users can define a scale factor (e.g., --scale 3) to increase detail for high-resolution displays.
  • Automated Naming Convention: Defaults to a smart suffixing system (_long.png) to prevent accidental overwriting of source files.
  • High-Performance Concatenation: Optimized for high page counts, generating seamless vertical transitions between pages.
  • Seamless CLI Integration: Designed to be called as a standalone script or as part of a larger multi-agent automation task.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*