Imagemagick安全策略似乎不允许我将pdf转换为png。转换其他扩展名似乎可以正常工作,只是无法从pdf转换。自从我安装它以来,我没有更改过Imagemagick的任何设置... 我正在使用Arch Linux,如果操作系统有关系的话。
user@machine $ convert -density 300 -depth 8 -quality 90 input.pdf output.png
convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.
convert: no images defined `output.png' @ error/convert.c/ConvertImageCommand/3288.