There are very useful commands in imagemagick package to convert JPG to PDF.

convert *.jpg -auto-orient pictures.pdf

convert page1.jpg page2.jpg +compress file.pdf

Install imagemagick:

sudo apt-get install imagemagick

Be patient with images order. The order in PDF after converting could be random. Add numbers to the jog files names, like filename01.jpg...filename99.jpg etc.

If there is an error in coverting - check the permissions.
Add the string in file /etc/ImageMagick-7/policy.xml 

<policy domain="coder" rights="read | write" pattern="PDF" />

right after </policymap>

Add new comment

The content of this field is kept private and will not be shown publicly.
  • No HTML tags allowed.
 ooooooo  ooooo                    oooooooooo.   ooooo      ooo   oooooooooooo    .oooooo.      
`8888 d8' `888' `Y8b `888b. `8' d'""""""d888' d8P' `Y8b
Y888..8P oooo oooo ooo 888 888 8 `88b. 8 .888P 888 888
`8888' `88. `88. .8' 888oooo888' 8 `88b. 8 d888' 888 888
.8PY888. `88..]88..8' 888 `88b 8 `88b.8 .888P 888 888
d8' `888b `888'`888' 888 .88P 8 `888 d888' .P `88b d88b
o888o o88888o `8' `8' o888bood8P' o8o `8 .8888888888P `Y8bood8P'Ybd'

Enter the code depicted in ASCII art style.