pdf_images_to_pdf
Convert one or more PNG or JPG images into a PDF, with each image as a page scaled to fit while maintaining 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.
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 |