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 ofconvert
:This command will result in one
pdf
file with all thepng
images.