linux下swftools 的配置
4、安裝xpdf語言包。下載xpdf-chinese-simplified.tar.gz文件,解壓到/usr/share/xpdf下,編輯add-to-xpdfrc文件,如下:
?tar zxvf xpdf-chinese-simplified.tar.gz
?????????unzip font.zip
mv Gbsn00lp.ttf gkai00mp.ttf xpdf-chinese-simplified/CMap/
cd /usr/share/xpdf/xpdf-chinese-simplified
vi add-to-xpdfrc
內容如下:
cidToUnicode???Adobe-GB1???????/usr/share/xpdf/xpdf-chinese-simplified/Adobe-GB1.cidToUnicode
unicodeMap?????ISO-2022-CN????/usr/share/xpdf/xpdf-chinese-simplified/ISO-2022-CN.unicodeMap
unicodeMap?????EUC-CN?????????????/usr/share/xpdf/xpdf-chinese-simplified/EUC-CN.unicodeMap
unicodeMap?????GBK???????????/usr/share/xpdf/xpdf-chinese-simplified/GBK.unicodeMap
cMapDir????????????Adobe-GB1???????/usr/share/xpdf/xpdf-chinese-simplified/CMap
toUnicodeDir??????????????????????/usr/share/xpdf/xpdf-chinese-simplified/CMap
displayCIDFontTT Adobe-GB1 /usr/share/xpdf/xpdf-chinese-simplified/CMap/gkai00mp.ttf
保存后退出?? 注意:一般這些都是配置好的,我的缺少最后一個,追加上就ok了
5、最后使用如下轉換命令測試: pdf2swf -s languagedir=/usr/local/xpdf-chinese-simplified -T 9 -s poly2bitmap -s zoom=150 -s flashversion=9 "/opt/123.pdf" -o "/opt/test/%.swf"??? 注意:pdf2swf 的目錄下或將路徑帶上,查看路徑方法? whereis pdf2swf 就ok了 轉換成功!搞定!轉載于:https://www.cnblogs.com/weipeng/p/3671741.html
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的linux下swftools 的配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql gui tools ojdb
- 下一篇: C#实现RTP数据包传输