国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > CentOS > 正文

centos6.5下安裝openoffice+jodconverter+swftool+flexpaper工具實現在線預覽文檔功能

2024-06-28 16:02:27
字體:
來源:轉載
供稿:網友
作用:linux下文檔服務器上傳文檔轉換成pdf文檔,再由swftool工具轉換成swf文件實現在線預覽環境:OS   centos6.5          java環境軟件包:Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN.tar.gz  http://sourceforge.net/PRojects/openofficeorg.mirror/files/4.1.3/binaries/zh-CN/Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN.tar.gz             jodconverter-2.2.2.zip              swftools-2013-04-09-1007.tar.gz   http://www.swftools.org/swftools-2013-04-09-1007.tar.gz一、openoffice的安裝1、下載linux下的安裝包http://www.openoffice.org/  http://sourceforge.net/projects/jodconverter/files/我下載的是最新版本# cd /usr/local/src# wget http://sourceforge.net/projects/openofficeorg.mirror/files/4.1.3/binaries/zh-CN/Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN.tar.gz2、解壓安裝#tar zxvf Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN.tar.gz# cd zh-CN/RPMS# rpm -ivh *.rpm      #安裝所有rpm包3、進入到desktop-integration目錄,選擇安裝相關的套件,我選擇的是redhat# rpm -ivh openoffice4.1.3-redhat-menus-4.1.3-9783.noarch.rpm4、啟動openoffic服務,安裝在/opt下進入opt下的openofiice4目錄:# cd /opt/openoffice4/program啟動服務# soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard & 查看端口已經正常啟動;二、jodconvert的安裝測試下載jodconvert包然后解壓,找到jar包執行路徑/usr/local/jodconverter/lib/jodconverter-cli-2.2.2.jar測試java -jar /usr/local/jodconverter/lib /jodconverter-cli-2.2.2.jar test.doc test.pdf發現生成pdf文件,說明openoffice安裝啟動成功服務加入開機自啟動#vim /etc/rc.local#!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don't# want to do the full Sys V style init stuff.#route add default gw 192.168.50.1soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &touch /var/lock/subsys/local三、swftools安裝 1、下載地址 http://www.swftools.org/download.html# wget http://www.swftools.org/swftools-2013-04-09-1007.tar.gz2、安裝依賴包#  yum -y install giflib-devel libjpeg-develfreetype-devel t1lib-devel zlib3、解壓# tar zxvf swftools-2013-04-09-1007.tar.gz# cd swftools-2013-04-09-1007# ./configure5.編譯安裝# make && make install6、查詢安裝成功后的which pdf2swf目錄#which pdf2swf/usr/local/bin/pdf2swfQS:后來發現安裝openoffice轉換效果并不理想,首先是速度較慢,再就是很多舊文檔,文件格式支持性不好,部分文檔不能轉換,于是乎安裝libreoffice步驟與openoffice差不多1、官網打開http://zh-cn.libreoffice.org/download/libreoffice-still/2、下載穩定版本http://zh-cn.libreoffice.org/download/libreoffice-still/?type=rpm-x86_64&version=5.2&lang=zh-CN3、下載# wget http://mirrors.ustc.edu.cn/tdf/libreoffice/stable/5.2.5/rpm/x86_64/LibreOffice_5.2.5_Linux_x86-64_rpm.tar.gz下載中文支持包# wget http://download.documentfoundation.org/libreoffice/stable/5.2.5/rpm/x86_64/LibreOffice_5.2.5_Linux_x86-64_rpm_langpack_zh-CN.tar.gz4、解壓,并且到RPMS下,安裝所有的rpm包# rpm -ivh *.rpm5、開啟服務(與openoffice一致)soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard & 四、參考文檔:http://blog.csdn.net/cuker919/article/details/46389449
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 宁津县| 庄河市| 霍山县| 武夷山市| 景谷| 张家界市| 明光市| 沅江市| 青州市| 桃园市| 湄潭县| 黄梅县| 诸暨市| 双鸭山市| 磐石市| 华容县| 石嘴山市| 竹溪县| 措勤县| 山阴县| 霍林郭勒市| 四川省| 泸水县| 富源县| 察隅县| 天峨县| 博白县| 梅州市| 林西县| 甘德县| 济宁市| 宁都县| 镶黄旗| 砀山县| 永泰县| 夏津县| 通河县| 德令哈市| 湘乡市| 大同市| 汉源县|