ImageMagick出错/undefined in findresource
上网调查,有的说是ghostscript8.7安装包的事
http://thomas-genin.com/blog/command-line-2/ghostscript-convert-error-undefined-in-findresource/
写了一堆,感觉不是针对日文pdf的,所以搜索关键字加上了 Adobe-Japan1 ,终于出现了靠谱的文章
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=14934
1) installed Japanese-support
yum groupinstall japanese-support
2) downloaded fonts from here
http://www.linux.ryukent.co.uk/show.php?id=24
That gives you MS-Mincho and MS Gothic (Microsoft TryeType fonts)
3) then I found a conf.d directory with cidfmap.ja file where you can
specify the substitution font Adobe-Japan1 and Adobe-Japan2
/MSGothic << /FileType /TrueType /Path
(/usr/share/fonts/truetype/msjapanesefonts/MSGOTHIC.TTF) /CSI [(Japan1)
2] >> ;
/MSMincho << /FileType /TrueType /Path
(/usr/share/fonts/truetype/msjapanesefonts/MSMINCHO.TTF) /CSI [(Japan1)
2] >> ;
/Adobe-Japan1 /MSGothic ;
/Adobe-Japan2 /MSGothic ;
但是我不知道cidfmap.ja在哪里,又得搜索。
最后知道了在 /etc/ghostscript/... 下面。 但是文件名叫 cidfmap.local
我把这个文件改了之后,又拷贝出一个cidfmap.ja,问题解决
convert ./a.pdf[0] aaa.jpg
能成功生成jpg文件