Closed zexa closed 4 years ago
Tried running the conversion manually:
$ convert -density 300 input.pdf -depth 8 -strip -background white -alpha off ./temp.tiff
convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.
convert: no images defined `./temp.tiff' @ error/convert.c/ConvertImageCommand/3273.
Searching for the error links me to https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion
Well, I added
<policy domain="coder" rights="read | write" pattern="PDF" />
just before </policymap> in /etc/ImageMagick-7/policy.xml and that makes it work again, but not sure about the security implications of that.
Hopefully this helps somebody.
I confirm this solution. I have used the following resource and changed the value for PDF https://alexvanderbist.com/posts/2018/fixing-imagick-error-unauthorized
Hello,
I'm running to the following issue when trying to load my own file:
Additionally, trying to parse the same file with pdfminer returns the following: