Merge a group of pictures into a pdf using Imagemagic:

1. Set up:

*If you don't have Image Magic installed, get it by:
sudo apt-get install imagemagick

Edit the config file by this command:
sudo nano /etc/ImageMagick-6/policy.xml

Change the memory & map limits from the default 256MiB to 8GiB or 16GiB depending on how your system works and amount of ram you have.
Also add this line just before the "" line at the end of the file:

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

Then save and close.

You can then use "convert -list resource" command to confirm you wave the wanted memory and map sizes.
--------------------------------------------------------------------------------------------------------
2. How to use:

convert $(ls -v *.png) "Document.pdf"

*Note: Name of PDF document gets embedded as part of file as tittle. So write the final name you want!

--------------------------------------------------------------------------------------
Source A
Source B
Source C

Date: April 6th, 2023

Back