png_to_pdf
Combine PNG images into a single PDF document. Provide image paths or a directory; images are sorted alphabetically.
Instructions
Combine PNG images into a single PDF document.
Provide either a list of image paths or a directory containing PNGs. When using a directory, images are sorted alphabetically (the naming convention from pdf_to_png -- page_001.png, page_002.png, etc. -- preserves correct order automatically).
Args: image_paths: Comma-separated image file paths, or a JSON array of paths image_directory: Directory of PNG files to combine (alternative to image_paths) output_path: Path for the output PDF. Defaults to /combined.pdf
Returns: Dictionary with the output PDF path and page count
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_paths | No | ||
| output_path | No | ||
| image_directory | No |