{"attachments":[],"attr":{},"bold":false,"channelId":460,"checked":true,"collectsCount":0,"commentsCount":0,"commentsDay":0,"contentCount":{"collects":0,"collectsDay":0,"collectsMonth":0,"collectsWeek":0,"comments":0,"commentsDay":0,"commentsMonth":0,"commentsWeek":0,"downloads":0,"downloadsDay":0,"downloadsMonth":0,"downloadsWeek":0,"downs":0,"id":101497,"likes":0,"likesDay":0,"likesMonth":0,"likesWeek":0,"ups":0,"upsDay":0,"upsMonth":0,"upsWeek":0,"views":1613,"viewsDay":0,"viewsMonth":6,"viewsWeek":0},"contentExt":{"bold":false,"editDate":1584610463000,"id":101497,"releaseDate":1584610463000,"stitle":"使用java调用openoffice服务进行pdf转换","title":"使用java调用openoffice服务进行pdf转换","tplMobileContent":""},"contentImgWhole":"使用java调用openoffice服务进行pdf转换","contentTxt":{"id":101497,"txt":"
下载地址:http://www.openoffice.org/zh-cn/download/
选择(RPM)类型进行下载,选择对应的版本,这里默认选择是最新的版本,选择完之后,点击“Download full installation”进行下载
这里不进行赘述,可以使用xftp进行上传,也可以使用 rz 命令进行上传
tar -zxvf 压缩包名字
解压完之后会出现一个“zh-cn“的文件夹
cd /zh-cn/RPMS
yum install *.rpm\r\ncd desktop-integration\r\nrpm -ivh openoffice4.1.7-redhat-menus-4.1.7-9800.noarch.rpm
命令执行完成之后,在opt文件目录中,会出现"openoffice4“文件夹,说明安装成功。
进入opt下的openofiice4目录:cd /opt/openoffice4
进入program目录执行
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
完成启动
临时启动
/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
一直后台启动
nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
windows启动命令:soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
windows启动命令里面短连接号后面不带空格“ -nofirststartwizard ”
linux启动命令:soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
netstat -lnp |grep 8100\r\ntcp 0 0 127.0.0.1:8100 0.0.0.0:* LISTEN 19501/soffice.bin
1、/opt/openoffice4/program/soffice.bin: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory
https://pkgs.org/download/libXext.so.6()(64bit)
安装 libXext rpm 或者yum install libXext.i686
如果出现这种情况,说明在/opt/openoffice4/program/下缺少libXext.so.6文件,可以去/usr/lib64 或者 /usr/lib 查看有没有这个文件,如果有就copy到/opt/openoffice4/program/目录里面,如果没有在安装
# yum install libXext.x86_64
2、 /opt/openoffice4/program/soffice.bin: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory
找不到libfreetype.so.6文件,同上输入:yum install libfreetype.i686,安装完之后去那两个目录找libXext.so.6复制到/opt/openoffice4/program/目录里面,赋予权限。
3、报问题:no suitable windowing system found, exiting.
输入下面安装命令,一路安装完之后重启系统,在启动openoffice服务看看。
yum groupinstall "X Window System"
4、出现中文乱码
4.1、先从你本机 C:\\Windows\\Fonts 拷贝或者网络上下载你想要安装的字体文件(*.ttf文件)到 /usr/share/fonts/chinese/TrueType 目录下(如果系统中没有此目录,则自行mkdir创建,亦可重命名为自己喜欢的文件夹名)
4.2、修改字体文件的权限,使root用户以外的用户也可以使用
# cd /usr/share/fonts/chinese/TrueType\r\n# chmod 755 *.ttf
4.3、建立字体缓存
# mkfontscale (如果提示 mkfontscale: command not found,需自行安装 # yum install mkfontscale )\r\n# mkfontdir \r\n# fc-cache -fv (如果提示 fc-cache: command not found,则需要安装# yum install fontconfig )
4.4、重启计算机
","txtCount":1},"ctgName":"LINUX","ctgUrl":"http://www.pinhuba.com/linux/index.htm","date":1584610463000,"downloadsDay":0,"downs":0,"draft":false,"hasTitleImg":false,"id":101497,"mobileTplContent":"","modelId":1,"new":false,"pageCount":1,"pictures":[],"recommend":false,"releaseDate":1584610463000,"score":0,"shared":false,"siteId":4,"siteName":"品互网络","siteUrl":"http://www.pinhuba.com","sortDate":1584610464000,"status":2,"stit":"使用java调用openoffice服务进行pdf转换","stitle":"使用java调用openoffice服务进行pdf转换","tags":[],"tit":"使用java调用openoffice服务进行pdf转换","titBold":false,"title":"使用java调用openoffice服务进行pdf转换","titleImgWhole":"使用java调用openoffice服务进行pdf转换","topLevel":0,"txt":"下载地址:http://www.openoffice.org/zh-cn/download/
选择(RPM)类型进行下载,选择对应的版本,这里默认选择是最新的版本,选择完之后,点击“Download full installation”进行下载
这里不进行赘述,可以使用xftp进行上传,也可以使用 rz 命令进行上传
tar -zxvf 压缩包名字
解压完之后会出现一个“zh-cn“的文件夹
cd /zh-cn/RPMS
yum install *.rpm\r\ncd desktop-integration\r\nrpm -ivh openoffice4.1.7-redhat-menus-4.1.7-9800.noarch.rpm
命令执行完成之后,在opt文件目录中,会出现"openoffice4“文件夹,说明安装成功。
进入opt下的openofiice4目录:cd /opt/openoffice4
进入program目录执行
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
完成启动
临时启动
/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
一直后台启动
nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
windows启动命令:soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
windows启动命令里面短连接号后面不带空格“ -nofirststartwizard ”
linux启动命令:soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
netstat -lnp |grep 8100\r\ntcp 0 0 127.0.0.1:8100 0.0.0.0:* LISTEN 19501/soffice.bin
1、/opt/openoffice4/program/soffice.bin: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory
https://pkgs.org/download/libXext.so.6()(64bit)
安装 libXext rpm 或者yum install libXext.i686
如果出现这种情况,说明在/opt/openoffice4/program/下缺少libXext.so.6文件,可以去/usr/lib64 或者 /usr/lib 查看有没有这个文件,如果有就copy到/opt/openoffice4/program/目录里面,如果没有在安装
# yum install libXext.x86_64
2、 /opt/openoffice4/program/soffice.bin: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory
找不到libfreetype.so.6文件,同上输入:yum install libfreetype.i686,安装完之后去那两个目录找libXext.so.6复制到/opt/openoffice4/program/目录里面,赋予权限。
3、报问题:no suitable windowing system found, exiting.
输入下面安装命令,一路安装完之后重启系统,在启动openoffice服务看看。
yum groupinstall "X Window System"
4、出现中文乱码
4.1、先从你本机 C:\\Windows\\Fonts 拷贝或者网络上下载你想要安装的字体文件(*.ttf文件)到 /usr/share/fonts/chinese/TrueType 目录下(如果系统中没有此目录,则自行mkdir创建,亦可重命名为自己喜欢的文件夹名)
4.2、修改字体文件的权限,使root用户以外的用户也可以使用
# cd /usr/share/fonts/chinese/TrueType\r\n# chmod 755 *.ttf
4.3、建立字体缓存
# mkfontscale (如果提示 mkfontscale: command not found,需自行安装 # yum install mkfontscale )\r\n# mkfontdir \r\n# fc-cache -fv (如果提示 fc-cache: command not found,则需要安装# yum install fontconfig )
4.4、重启计算机
","txtCount":1,"typeId":1,"typeImgWhole":"使用java调用openoffice服务进行pdf转换","ups":0,"upsDay":0,"url":"http://www.pinhuba.com/linux/101497.htm","urlDynamic":"http://www.pinhuba.com/linux/101497.htm","user":{"activation":true,"admin":true,"birthday":1664208000000,"comefrom":"江苏 宜兴","countAttentions":11,"countContents":572,"countFans":750,"countTopics":38,"disabled":false,"fileTotal":0,"gender":0,"grain":0,"groupId":1,"id":49,"intro":"我是老高,我为自己带盐。","lastLoginIp":"58.215.6.202","lastLoginTime":1711693342000,"lastLoginTimeStr":"2024-03-29 14:22","loginCount":5199,"mobile":"18061563977","msn":"msn","onlineTotal":34764,"onlineTotalHour":"579.40","phone":"87119969","priority":0,"qq":"344359951","rank":0,"realname":"蒋超","registerIp":"122.193.135.82","registerTime":1425364749000,"registerTimeStr":"2015-03-03 14:39","selfAdmin":false,"spaceStyle":"fcqq","spaceUrl":"/u/49.jspx","unifiedUser":{"activation":true,"errorCount":0,"id":49,"mobile":"18061563977","registerIp":"122.193.135.82","registerTime":1425364749000,"username":"老高"},"uploadDate":1697731200000,"uploadSize":1,"uploadTotal":10736,"userExt":{"birthday":1664208000000,"comefrom":"江苏 宜兴","countAttentions":11,"countContents":572,"countFans":750,"countTopics":38,"gender":0,"id":49,"intro":"我是老高,我为自己带盐。","msn":"msn","phone":"87119969","qq":"344359951","realname":"蒋超","spaceStyle":"fcqq","userImg":"http://static.pinhuba.com/uface/3.jpg","userSignature":"专注于JAVA技术...我是老高,我为自己带盐。"},"userImg":"http://static.pinhuba.com/uface/3.jpg","userOnline":{"id":49,"lastLoginIp":"58.215.6.202","lastLoginTime":1711693342000,"lastStopTime":1711693342000,"loginCount":5199,"onlineTotal":34764,"systemHost":"127.0.0.1:8232","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.5735.289 Safari/537.36"},"userSignature":"专注于JAVA技术...我是老高,我为自己带盐。","username":"老高","viewonlyAdmin":false},"userId":49,"viewDay":0,"views":1613,"viewsDay":0,"viewsMonth":6,"viewsWeek":0}