ImageMagick policy forbids handling PDF files
Brought to you by:
tobias-elze
ImageMagick now forbids handling PDF files by default. This is also the case in the version installed in Ubuntu 18.04. Thus the identify command will fail.
Disabling the following line in /etc/ImageMagick-6/policy.xml fixes it:
<policy domain="coder" rights="none" pattern="PDF"></policy>
Maybe you can overwrite it with an environment variable or
-limitcommand line option.See ImageMagick architecture and search for
policy.xml.I noticed that in Ubuntu 18.04 the problem is a
coderpolicy, while in the linked commit it is amodulepolicy. Anyway, I hope you find a way to overwrite this policy!Last edit: darkdragon 2018-10-07
Thanks for bringing this up, this is pretty awful. I don't see a way to override this policy with -limit or with an environment variable. Do you have any ideas?
The only way seems to be to edit the policy.xml file manually, which would be a nuisance for occasional users.
I don't have an idea myself but asked in the official forum.
The latest version distributed with Ubuntu 18.10 seems to ship with a version which does not forbid PDF handling by default.
Here is a link to that version if you want to test it on your installation.
Problem re-appeared in Ubuntu 19.04 with ImageMagick 6.9.10-14 :(