PDF Creation – How to Create One PDF from Multiple Selected Images

image manipulationpdf

To convert multiple images to pdf this script will do that for all images inside a folder:

#!/bin/bash
#
for f in *.png; do
  convert ./"$f" ./"${f%.png}.pdf"
done

But each image is converted into a separate file.

Can all images be converted into one single pdf?

Best Answer

You can use the -adjoin option of convert:

convert -adjoin *.png out.pdf

This command will result in one pdf file with all the png images.

Related Question