澳门游戏平台大全 澳门十大电子游戏平台 设置配备swftools,Linux境况设置配置Swftools

设置配备swftools,Linux境况设置配置Swftools

CentOS 安装配置swftools

1、安装所需的库和组件。

yum install gcc* automake zlib-devel libjpeg-devel giflib-devel freetype-devel

2、下载编译安装swftools。

wgethttp://www.swftools.org/swftools-0.9.2.tar.gz``tar vxzf swftools-``0.9``.``2``.tar.gz``cd swftools-``0.9``.``2``./configure --prefix=/usr/local/swftools``make``make install

3、设置swftools环境变量

vim /etc/profile``export PATH=$PATH:/usr/swftools/bin/

4、安装xpdf语言包。
下载xpdf-chinese-simplified.tar.gz文件,解压到/usr/share/xpdf下,编辑add-to-xpdfrc文件(需要下载Gbsn00lp.ttf
gkai00mp.ttf字体),如下:

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

澳门十大电子游戏平台,保存后退出

5、最后使用如下转换命令测试:

pdf2swf -s languagedir=/usr/share/xpdf/xpdf-chinese-simplified -T 9 -s poly2bitmap -s zoom=150 -s flashversion=9 "/opt/123.pdf" -o "/opt/test/%.swf"

转换成功!搞定!
附: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

安装配置swftools 1、安装所需的库和组件。
yum install gcc* automake zlib-devel libjpeg-devel giflib-devel
freetype-devel 2、下载编译安装swftools。 wget…

 

系统:CentOS6.5的64位版本

 

这里有一位仁兄的几个错误处理办法,下面是swftools的安装配置步骤:

 

1、安装所需的库和组件。机器之前安装过了,主要安装的是下面几个组件。如果不安装会提示machine
`x86_64-unknown-linux’ not recognized

style=”background-color: #ff0000;”>yum install gcc* automake zlib-devel libjpeg-devel giflib-devel freetype-devel

以上必须安装,要不新系统没有pdf2swf命令。

 

2、下载编译安装swftools。

wget http://www.swftools.org/swftools-0.9.2.tar.gz

tar vxzf swftools-``0.9``.``2``.tar.gz

cd swftools-``0.9``.``2

./configure --prefix=/usr/swftools

make

make install

3、设置swftools环境变量,使pdf2swf成为一个可执行命令

vim /etc/profile

export PATH=$PATH:/usr/swftools/bin/

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

保存后退出

 

字体文件自己下载…

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"

转换成功!搞定!

附: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/local/xpdf-chinese-simplified

port = 8100

 

摘自:

标签:,

相关文章

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图