linux版本 Centos.x86_64
需要下载的工具包
openoffice
下载地址:https://www.openoffice.org/download/other.html
选择 Linux x86_64 rpm chinese简体中文包
解压并安装
安装openoffice
tar zxvf Apache_OpenOffice_4.0.1_Linux_x86-64_install-rpm_zh-CN.tar.gz cd RPEM rpm -Uivh *.rpm --nodeps –force
启动openoffice
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
openoffice sdk
下载地址:https://www.openoffice.org/download/other.html 页面底部选择x86_64 rpm包
安装openoffice sdk
tar zxvf Apache_OpenOffice-SDK_4.0.1_Linux_x86-64_install-rpm_en-US.tar.gz
cd RPEM
rpm -Uivh *.rpm
e. 安装jodconverter
解压jodconverter.2.2.2.zip,放在项目目录下,准备doc转pdf
详情见 http://www.artofsolving.com/node/13
java -jar lib/jodconverter-cli-2.2.0.jar document.doc document.pdf
f. 安装swftoofs
如果遇见错误,详情见
http://huanle0610.info/jingshu/588
tar zxvf swftools-0.9.2.tar.gz
cd swftools-0.9.2
./configure
#遇见错误
# warning ungif ... yum search ungif/libgif/devgif 并安装
make
#遇见错误
# rm -f /usr/local/swftool/share/swftools/swfs/default_viewer.swf -o -L /usr/local/swftool/share/swftools/swfs/default_viewer.swf
# vi swfs/Makefile # rm two lines
make install
# 检查是否安装成功
pdf2swf --help
#test
#pdf2swf test.pdf -o test.swf -f -T 9 -t -s storeallcharacters
g. 下载flexpaper在线预览demo (FlexPaper_2.2.4.zip)
下载地址 http://static.devaldi.com/GPL/FlexPaper_2.2.4.zip
这个包中有php预览demo, 可以通过访问 php/setup.php 搭建该demo环境
flexpaper php demo + upload doc + java doc to pdf + pdf to swf
这个流程的程序包,改天上传。
来源:oschina
链接:https://my.oschina.net/u/266279/blog/226317