I have multiple *.jpeg
pictures I like to merge into a single *.pdf
file like so:
convert Blatt1.jpg Blatt2.jpg Blatt3.jpg Blatt4.jpg out.pdf
I am prompted with the following exception:
convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408
What causes this problem and how can I fix it? I did some research but couldn't find anything about this particular problem.
policy.xml
? No... ImageMagick thinks there is a security issue. Nope, they do not. The restricted policy is made to prevent unknown vulnerabilities coming from third party software as Ghostscript used here for PDF files. If Ghostscript is up to date, then no (known) issue. Have a nice day and please, read, read, read – cmak.fr Jun 08 '20 at 15:24Is there a way to have multiple policies?
– Lenne Jul 26 '20 at 19:38sudo sed -i 's#"coder" rights="none" pattern="PDF"#"coder" rights="read|write" pattern="PDF"#' /etc/ImageMagick-6/policy.xml
– A T Sep 04 '22 at 16:59