Image to PDF

ยท
1 min read
tools tutorial linux
#pdf #image

How to convert multiple images into a single PDF file using ImageMagick convert command on Linux systems.

Adding images to pdf:

Terminal window
convert 1.jpg 2.jpg output.pdf

Compress:

Terminal window
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=input.pdf output.pdf

Another way to compress:

Terminal window
ps2pdf input.pdf output.pdf