Since ImageMagick's PDF abilities are broken ("not authorized" error) for some time with no solution in sight, what are the alternatives for converting images into PDF format right now?
I'm not interested in breaking the security as suggested numerous times in previous answers.
I use Ubuntu 18.04.3 LTS. I'm interested in converting common image formats (PNG, JPG) to PDF. I need a command line solution, like ImageMagick's convert tool, to be able to convert images in batches, in a scripted way.
1 Answer
sudo apt install img2pdf
img2pdf -o document.pdf picture.jpglossless conversion of raster images to pdf
Multipage:
img2pdf -o document.pdf page1.jpg page2.jpg 2