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
| Option | Description | Default |
|---|---|---|
-i, --input | Input image file or folder (required) | -- |
-o, --output | Output PDF file path (required) | -- |
--page-size | Page size: auto, a4, letter | auto |
--orientation | Orientation: auto, portrait, landscape | auto |
-q, --quality | JPEG compression quality 1-100 | 95 |
Prerequisites
- Repo: content-conductor
- Install:
pip install -r requirements.txtfrom repo root
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
Related Commands
cc process-image-- resize and crop images for platformscc extract-pdf-- extract content from PDFs to markdown