@rishabhdugar

Image to PDF

Convert images (PNG/JPG/WebP) into PDF documents. Combine multiple images into one PDF with page size control, orientation, fit modes, margin control, and image compression. Powered by PDFAPIHub.

当前版本
v1.0.0
code-plugin社区source-linked

Image to PDF — OpenClaw Plugin

Convert PNG, JPG, and WebP images into PDF documents using the PDFAPIHub API. This OpenClaw plugin combines images into PDFs with full page layout control, plus quick presets for scanned documents and photo books.

What It Does

Turn images into professional PDF documents — perfect for scanned pages, photo portfolios, insurance claims, medical records, and ID document bundles.

Features

  • Multi-Image PDF — Combine up to 100 images into a single PDF
  • Page Sizes — A4, Letter, Legal, A3, A5, or original image dimensions
  • Orientation — Portrait or landscape
  • Fit Modes — fit (scale to fit), fill (fill page, may crop), stretch, original
  • Margin Control — Padding around images (0-200 points)
  • Scan Preset — One-command A4 scanned document PDF with margins
  • Photo Book Preset — One-command landscape Letter photo book
  • Image Compression — Compress images before PDF creation to reduce size
  • Scan Enhancement — Clean up document photos with perspective correction
  • Direct PDF Output — Scan enhancement can output a single-page PDF directly
  • Multiple Output Modes — Download URL, base64, or raw file

Tools

ToolDescription
images_to_pdfCombine images into a PDF with full layout control
scans_to_pdfQuick preset: scanned pages → A4 PDF
photo_book_pdfQuick preset: photos → landscape photo book
compress_imageCompress images before PDF creation
scan_enhanceClean up document photos before conversion

Installation

openclaw plugins install clawhub:png-to-pdf

Configuration

Add your API key in ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "png-to-pdf": {
        "enabled": true,
        "env": {
          "PDFAPIHUB_API_KEY": "your-api-key-here"
        }
      }
    }
  }
}

Get your free API key at https://pdfapihub.com.

Usage Examples

Just ask your OpenClaw agent:

  • "Convert these images into a PDF"
  • "Combine these scanned pages into an A4 PDF"
  • "Create a photo book from these vacation photos"
  • "Clean up this document photo and make a PDF"
  • "Compress these images then combine into a PDF"

Use Cases

  • Scanned Documents — Combine scanned pages into a single PDF
  • Photo Portfolios — Create PDF photo books and portfolios
  • Insurance Claims — Bundle damage photos into one PDF for submission
  • Real Estate — Combine property photos into a downloadable brochure
  • Medical Records — Assemble scanned medical documents into one file
  • ID Documents — Combine front/back scans of IDs into one PDF
  • Receipts — Bundle receipt photos into one PDF for expense reports
  • Handwritten Notes — Scan and enhance notes into a clean PDF

Limits

  • Max 100 images per request
  • Margin: 0-200 points

API Documentation

Full API docs: https://pdfapihub.com/docs

License

MIT

源码与版本

源码仓库

PdfApiHub/openclaw-png-to-pdf

打开仓库

源码提交

c5d278f6963b4640f46431bf11f7f04d31737329

查看提交

安装命令

openclaw plugins install clawhub:png-to-pdf

元数据

  • 包名: png-to-pdf
  • 创建时间: 2026/04/17
  • 更新时间: 2026/04/17
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.3.24-beta.2
  • 插件 API 范围: >=2026.3.24-beta.2
  • 标签: latest
  • 文件数: 7