Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ImageMagick无法将PDF转换为WSL上的图像_Imagemagick_Windows Subsystem For Linux - Fatal编程技术网

ImageMagick无法将PDF转换为WSL上的图像

ImageMagick无法将PDF转换为WSL上的图像,imagemagick,windows-subsystem-for-linux,Imagemagick,Windows Subsystem For Linux,我试图使用ImageMagick将PDF转换为图像,但出现以下错误: convert-im6.q16:尝试执行安全策略“PDF”不允许的操作@error/compose.c/IsCoderAuthorized/408 convert-im6.q16:未定义图像`tmp/%03d.png'@error/convert.c/ConvertImageCommand/3258 我找到了一堆建议修改policy.xml文件的答案(如和);我的问题是,我不知道在WSL上的哪里可以找到该文件:我尝试在/etc

我试图使用ImageMagick将PDF转换为图像,但出现以下错误:

convert-im6.q16:尝试执行安全策略“PDF”不允许的操作@error/compose.c/IsCoderAuthorized/408

convert-im6.q16:未定义图像`tmp/%03d.png'@error/convert.c/ConvertImageCommand/3258


我找到了一堆建议修改policy.xml文件的答案(如和);我的问题是,我不知道在WSL上的哪里可以找到该文件:我尝试在/etc/中查找它,在Windows中查找和搜索,但没有结果。你知道如何在WLS上解决这个问题吗?

你可以这样找到它:

identify -list configure | grep CONFIGURE_PATH
find / -name policy.xml 2> /dev/null
否则,请使用搜索

否则,请在WSL环境中使用
find
,如下所示:

identify -list configure | grep CONFIGURE_PATH
find / -name policy.xml 2> /dev/null
否则,只需使用Windows的搜索来查找名为
policy.xml的文件

请参见