Imagemagick Convert to PDF Not Allowed

Imagemagick Convert to PDF Not Allowed

2020, Nov 19    

I have a bash script to convert a PDF to an image using Image Magick. But ImageMagick has some security policies disabling some rights for security reasons.

About ImageMagick sercurity policy The restricted policy is made to prevent unknown vulnerabilities coming from third party software as Ghostscript used here for PDF files. Be sure to update Ghostscript.

To re enable find the line below

policy domain=”coder” rights=”none” pattern=”PDF” and replace “none” by “read|write” in /etc/ImageMagick-6/policy.xml