Image to PDF
ImagetoPDFImage to PDF: Image to PDF combines up to 20 images, uploaded or fetched from URLs, into one PDF with one image per page, and returns a download link valid for 2 days. Pages can match each image or be A4, Letter or Legal with a margin, and multi-page TIFF scans and animated GIFs become one page per frame. (Cost: 10 credits) REST: POST https://api.apiverve.com/v1/imagetopdf, multipart/form-data with the file in "image" and other params as form fields, key in the x-api-key header. Docs: https://apiverve.com/md/marketplace/imagetopdf.md
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ImagetoPDF"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | A JSON array of public image URLs, added in order after image; a comma- or newline-separated list also works. Up to 20 images per call in all | |
| image | No | An image file (upload one or more as multipart files, up to 20), base64 image data, or a public image URL | |
| margin | No | Margin around each image in millimetres, from 0 to 50 | |
| quality | No | Re-compress every image as JPG at this quality (1-100) to make the PDF smaller. Omit to keep JPG and PNG images unchanged | |
| pageSize | No | Page size: fit makes each page the size of its image; a4, letter and legal fit the image inside the margins | a4 |
| orientation | No | Page orientation for a4, letter and legal; auto turns each page to match its image. Ignored for fit | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |