Install
openclaw skills install @rishabhdugar/img-to-pdfCombine one or more images into a single PDF document with page layout control (page size, orientation, fit mode, margin).
openclaw skills install @rishabhdugar/img-to-pdfCombines one or more images into a single PDF document. Supports page size selection, orientation, fit modes, and margin control.
Provide one of:
image_url — single image URLimage_urls — array of image URLsimages_base64 — array of base64-encoded imagesfile field(s)Send your API key in the CLIENT-API-KEY header.
Get your free API key at https://pdfapihub.com. Full API documentation is available at https://pdfapihub.com/docs.
| Parameter | Description |
|---|---|
page_size | A4, Letter, Legal, A3, A5, or original |
orientation | portrait or landscape |
fit_mode | fit (default), fill, stretch, original |
margin | Padding in points (0–200) |
output | url (default), base64, both, file |
curl -X POST https://pdfapihub.com/api/v1/convert/image/pdf \
-H "CLIENT-API-KEY: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_urls": ["https://pdfapihub.com/sample.jpg", "https://pdfapihub.com/sample-invoicepage.png"],
"page_size": "A4",
"orientation": "portrait",
"fit_mode": "fit",
"margin": 36,
"output": "url"
}'