@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.

Current version
v1.0.0
code-pluginCommunitysource-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

Source and release

Source repository

PdfApiHub/openclaw-jpg-to-pdf

Open repo

Source commit

2e611dee606754d8053d86c2e3a675510f0bfee2

View commit

Install command

openclaw plugins install clawhub:jpg-to-pdf

Metadata

  • Package: jpg-to-pdf
  • Created: 2026/04/17
  • Updated: 2026/04/17
  • Executes code: Yes
  • Source tag: main

Compatibility

  • Built with OpenClaw: 2026.3.24-beta.2
  • Plugin API range: >=2026.3.24-beta.2
  • Tags: latest
  • Files: 7