pdf2swf无法为'SimSun'创建字体

时间:2014-11-03 10:13:47

标签: linux pdf2swf

我试图将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才会出现此错误。

1 个答案:

答案 0 :(得分:0)

由于这个问题没有答案,我可以在这里添加一个可选的解决方案(作为解决方法)。

对于Flexpaper,如果使用“HTML5”渲染模式,它将正确呈现中文和其他unicode文本。

相关问题