2014-11-03 68 views
1

我試圖將PDF轉換爲swf,並且我使用的是swftools。爲了支持中國,我下載的xpdf - 中國 - simplified.tar和修改添加到xpdfrc文件中像這樣pdf2swf無法爲'SimSun'創建字體

#----- 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。

回答

0

由於此問題缺少答案,因此我可以在此添加可選解決方案(作爲解決方法)。

對於Flexpaper,如果使用「HTML5」渲染模式,它將正確渲染中文和其他Unicode文本。