我尝试使用ImageMagick将PDF转换为图像,但出现以下错误:
我找到了一些解答(例如这个和这个),建议修改policy.xml文件。我的问题是,我不知道在WSL中在哪里找到该文件:我尝试在/etc/中查找,并使用find命令和Windows搜索,但无济于事。有没有办法在WSL上解决这个问题?convert-im6.q16: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408.
convert-im6.q16: no images defined `tmp/%03d.png' @ error/convert.c/ConvertImageCommand/3258.