Images to PDF
images_to_pdfCombine JPG and PNG images into a single PDF, one image per page in order. No re-compression; writes a new file without overwriting existing.
Instructions
Put JPG and PNG images into one PDF, one image per page, in the order given. Images are embedded as they are, without re-compression. HEIC and WebP are rejected with an error that says how to convert them. Writes a new PDF and returns its path; an existing file is never overwritten.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | JPG or PNG paths, in page order. | |
| margin | No | Margin in points (72 = 1 inch). | |
| output | No | Where to write the result. Defaults to a new file beside the input. Existing files are never overwritten; a free name like file-1.pdf is used instead. | |
| page_size | No | "fit" makes each page the size of its image; "a4" and "letter" centre the image on a standard page. | fit |