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文件

转载于:https://www.cnblogs.com/johnsonshu/archive/2012/06/28/2568496.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值