Convert multiple image files into a single PDF with deterministic ordering, EXIF orientation correction, alpha flattening, and page layout controls. Use when the user asks to merge several image files into one PDF, convert scanned images into a PDF, or bundle screenshots/photos into a printable document.
Create a single PDF from multiple image files.
--output is omitted.--skip-invalid is set.Use scripts/images_to_pdf.py.
python scripts/images_to_pdf.py page1.jpg page2.png page3.webp --output result.pdf
--output <path>: Set output PDF path. If omitted, derive <first-input>.pdf.--sort name|mtime|natural: Sort files before rendering.--page-size a4|letter|fit-image: Choose page sizing.--orientation auto|portrait|landscape: Control page orientation.--margin <points>: Set page margin in PDF points.--skip-invalid: Skip unreadable image files and continue.--jpeg-quality <1-100>: Control embedded image JPEG quality.--title <text>: Set PDF title metadata.--author <text>: Set PDF author metadata.--subject <text>: Set PDF subject metadata.