pdf_images_to_pdf
Convert one or more PNG or JPG images into a PDF, placing each image on its own page. Scales images to fit the selected page size while preserving aspect ratio.
Instructions
Convert one or more images (PNG/JPG) into a PDF. Each image becomes a page, scaled to fit while maintaining aspect ratio.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"imagePaths": "<imagePaths>",
"outputPath": "<outputPath>"
},
"name": "pdf_images_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| margin | No | Margin around image in points (default: 0) | |
| pageSize | No | "FitImage" sizes each page to match the image (default: A4) | A4 |
| imagePaths | Yes | Array of image file paths (PNG or JPG) | |
| outputPath | Yes | Path where the PDF will be saved |