User Tools

Site Tools


convert_images_to_pdf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

convert_images_to_pdf [2021/02/24 09:19] (current)
dino created
Line 1: Line 1:
 +<code>
 +sudo apt-get install imagemagick
 +</code>
 +
 +Once you have it installed, use the ‘convert’ command line tool of ImageMagic. Just provide the paths to individual images and at the end of the command, name the output file. For example, something like this:
 +
 +<code>convert image1.jpg image2.png image3.bmp output.pdf</code>
 +
 +If you get error while creating pdf, add: 
 +<code>
 + <policy domain="coder" rights="read | write" pattern="PDF" />
 +</code>
 +
 +just before </policymap> in /etc/ImageMagick-7/policy.xml
 +
  
convert_images_to_pdf.txt · Last modified: 2021/02/24 09:19 by dino