Integration
Jpg To Pdf
OpenClaw plugin to convert JPG/JPEG photos into PDF documents — combine multiple photos, page size control, orientation, fit modes, photo book presets. Powered by PDFAPIHub API. Free API key at pdfapihub.com
Install
openclaw plugins install clawhub:pdfapihub-jpg-to-pdf
Configuration Example
{
"plugins": {
"entries": {
"pdfapihub-jpg-to-pdf": {
"enabled": true,
"env": {
"PDFAPIHUB_API_KEY": "your-api-key-here"
}
}
}
}
}
README
# JPG to PDF — OpenClaw Plugin
Convert JPG photos and images to PDF documents using the [PDFAPIHub](https://pdfapihub.com) 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
| Tool | Description |
|------|-------------|
| `jpg_to_pdf` | Convert one or more images to PDF with full layout control |
| `photos_to_album` | Create a photo album PDF in Letter landscape format |
| `compress_jpg` | Compress JPG/PNG images to reduce file size |
## Installation
```bash
openclaw plugins install clawhub:pdfapihub-jpg-to-pdf
```
## Configuration
Add your API key in `~/.openclaw/openclaw.json`:
```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](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](https://pdfapihub.com/docs)
## License
MIT
integration
Comments
Sign in to leave a comment