我试着把一个pdf格式转换成一个swf格式,我用的是swftools。为了支持中文,我下载了xpdf- Chinese -simplified.tar并像这样修改了add- To -xpdfrc文件
#----- begin Chinese Simplified support package (2011-sep-02)
cidToUnicode Adobe-GB1 /usr/local/share/xpdf-chinese-simplified/Adobe-GB1.cidToUnicode
unicodeMap ISO-2022-CN /usr/local/share/xpdf-chinese-simplified/ISO-2022-CN.unicodeMap
unicodeMap EUC-CN /usr/local/share/xpdf-chinese-simplified/EUC-CN.unicodeMap
unicodeMap GBK /usr/local/share/xpdf-chinese-simplified/GBK.unicodeMap
cMapDir Adobe-GB1 /usr/local/share/xpdf-chinese-simplified/CMap
toUnicodeDir /usr/local/share/xpdf-chinese-simplified/CMap
#fontFileCC Adobe-GB1 /usr/..../gkai00mp.ttf
displayCIDFontTT Adobe-GB1 /usr/local/share/xpdf-chinese-simplified/gkai00mp.ttf
#----- end Chinese Simplified support package当我试着转换pdf的时候,
/usr/local/bin/pdf2swf 10434_102_demo_1414995035745.pdf -o test.swf -s
languagedir=/usr/local/share/xpdf-chinese-simplified发生错误:
Error: Couldn't create a font for 'SimSun'PS。我有两个环境,一个是MAC,另一个是Redhat,在MAC中一切正常,这个错误只在Redhat中发生。
发布于 2016-07-07 17:22:02
由于此问题缺少答案,因此我可以在此处添加一个可选的解决方案(作为变通办法)。
对于Flexpaper,如果您使用"HTML5“渲染模式,它将正确地渲染中文和其他unicode文本。
https://stackoverflow.com/questions/26711991
复制相似问题