Integration
Png To Pdf
OpenClaw plugin to convert images (PNG/JPG/WebP) into PDF documents — combine multiple images into one PDF with page size control (A4, Letter, original), orientation, fit modes (fit, fill, stretch), margin control, and PDF-to-image reverse conversion. Powered by PDFAPIHub API. Free API key at pdfapihub.com
Install
openclaw plugins install clawhub:png-to-pdf
Configuration Example
{
"plugins": {
"entries": {
"png-to-pdf": {
"enabled": true,
"env": {
"PDFAPIHUB_API_KEY": "your-api-key-here"
}
}
}
}
}
README
# Image to PDF — OpenClaw Plugin
Convert PNG, JPG, and WebP images into PDF documents using the [PDFAPIHub](https://pdfapihub.com) 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
| Tool | Description |
|------|-------------|
| `images_to_pdf` | Combine images into a PDF with full layout control |
| `scans_to_pdf` | Quick preset: scanned pages → A4 PDF |
| `photo_book_pdf` | Quick preset: photos → landscape photo book |
| `compress_image` | Compress images before PDF creation |
| `scan_enhance` | Clean up document photos before conversion |
## Installation
```bash
openclaw plugins install clawhub:png-to-pdf
```
## Configuration
Add your API key in `~/.openclaw/openclaw.json`:
```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](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](https://pdfapihub.com/docs)
## License
MIT
integration
Comments
Sign in to leave a comment