Skip to main content

images-to-pdf

Overview

Convert one or more images into a single PDF document. Supports HEIC/HEIF format from Apple devices, configurable page sizing, and orientation control.

Usage

python main.py images-to-pdf -i INPUT -o OUTPUT [OPTIONS]

Options

OptionDescriptionDefault
-i, --inputInput image file or folder (required)--
-o, --outputOutput PDF file path (required)--
--page-sizePage size: auto, a4, letterauto
--orientationOrientation: auto, portrait, landscapeauto
-q, --qualityJPEG compression quality 1-10095

Prerequisites

Examples

Convert folder of images to PDF

python main.py images-to-pdf -i ./photos -o output.pdf

A4 portrait layout

python main.py images-to-pdf -i ./scans -o document.pdf --page-size a4 --orientation portrait