imagemagick images to pdf code example Example: convert jpg to pdf imagemagick find /path/to/files -iname '*.jpg' -exec mogrify -format pdf {} +