Categories
Command Line Scripting Tutorial

Batch Convert Images to PDF from Command Line

A friend asked me for a way to batch-convert images into PDFs. Instead of using online converters, here's a command-line solution using ImageMagick that works on both Mac and Linux. It converts all images in a folder to individual PDFs and optionally merges them into one file.