Convert a folder of images into a multi-page pdf file using command line tools

command lineimage manipulationjpegpdf

I have a folder with 100 jpg images. I want to convert these images into a multi-page pdf file, with all the images (cropped to A4 size). They are already in the correct rotation.

Which tools should I use?

Best Answer

Requirements

ImageMagick

Type the follow line to commmand prompt for intall ImageMagick:

sudo apt-get install imagemagick

Convert from jpegs to PDF:

Go to the work directory (directory of jpegs):

cd work/directory/path

Convert the JPG files to PDF:

convert *.jpg foo.pdf

source : http://bitprison.net/jpg_to_pdf

Related Question