@rishabhdugar

JPG to PDF

Convert JPG photos and images to PDF documents with custom page sizes, orientation, fit modes, and margins. Combine multiple images into a single PDF album. Powered by PDFAPIHub.

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

JPG to PDF — OpenClaw Plugin

Convert JPG photos and images to PDF documents using the PDFAPIHub API. This OpenClaw plugin gives your AI agent the ability to create PDFs from images, build photo albums, and compress images.

What It Does

Transform one or more JPG, PNG, or WebP images into professionally formatted PDF documents with full control over page size, orientation, layout, and margins. Create multi-page photo albums in a single call.

Features

  • Single or Multi-Image — Convert one image or combine dozens into a single PDF
  • Page Size Options — A4, Letter, Legal, A3, A5, or original image dimensions
  • Orientation Control — Portrait or landscape layout
  • Fit Modes — Fit, fill, stretch, or original sizing
  • Custom Margins — 0-200px margins around images
  • Photo Album Mode — Quick preset for creating landscape photo albums
  • Image Compression — Reduce JPG file size with configurable quality
  • Flexible Output — Download URL, base64 string, or raw file

Tools

ToolDescription
jpg_to_pdfConvert one or more images to PDF with full layout control
photos_to_albumCreate a photo album PDF in Letter landscape format
compress_jpgCompress JPG/PNG images to reduce file size

Installation

openclaw plugins install clawhub:pdfapihub-jpg-to-pdf

Configuration

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

{
  "plugins": {
    "entries": {
      "pdfapihub-jpg-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 this image to PDF: https://example.com/photo.jpg"
  • "Create a photo album from these 10 images"
  • "Convert this poster to a landscape A3 PDF with 20px margins"
  • "Combine all these product photos into a single PDF catalog"
  • "Compress this image to 60% quality"

Use Cases

  • Photo Albums — Create printable photo album PDFs from vacation or event photos
  • Product Catalogs — Combine product images into a single PDF catalog
  • Document Scanning — Convert scanned document images to PDF format
  • Presentations — Turn image slides into a PDF deck
  • Archiving — Convert image collections to PDF for long-term storage
  • Image Compression — Reduce image file sizes before sharing or uploading

API Documentation

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

License

MIT

源码与版本

源码仓库

PdfApiHub/openclaw-jpg-to-pdf

打开仓库

源码提交

2e611dee606754d8053d86c2e3a675510f0bfee2

查看提交

安装命令

openclaw plugins install clawhub:jpg-to-pdf

元数据

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

兼容性

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