CentOS 安装配置swftools

分类:CentOS教程 阅读:41038 次

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

vim add-to-xpdfrc

内容如下:

cidToUnicodeAdobe-GB1/usr/share/xpdf/xpdf-chinese-simplified/Adobe-GB1.cidToUnicode

unicodeMapISO-2022-CN/usr/share/xpdf/xpdf-chinese-simplified/ISO-2022-CN.unicodeMap

unicodeMapEUC-CN/usr/share/xpdf/xpdf-chinese-simplified/EUC-CN.unicodeMap

unicodeMapGBK/usr/share/xpdf/xpdf-chinese-simplified/GBK.unicodeMap

cMapDirAdobe-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

保存后退出

附:Linux环境配置文件 openOfficeStartCommand = /usr/lib/openoffice.org3/program/soffice.bin/ -headless\ -accept="socket,host=127.0.0.1,port=8100;urp;"\ -nofirststartwizard pdfToSwfCommand = /usr/local/swftools/bin/pdf2swf bitMapc=-T 9 -s poly2bitmap -s zoom=150 zoom=150 langc=-s languagedir=/usr/share/xpdfl/xpdf-chinese-simplified port = 8100