在线office预览 kkFileView

2019-09-06

github地址: https://gitee.com/kekingcn/file-online-preview]

启用kkFileView,需要安装java1.8.0或以上版本,安装后配置jdk环境变量,然后将kkfileview的cache配置改为jdk,然后更改端口即可;在bin目录下启用bat(sh)文件即可使用

当word预览格式有误时,使用LibreOffice_6.3.2替换掉Apache_OpenOffice_4.1.7 ,在kkfileview的配置中的修改office.home配置(配置为LibreOffice_6.3.2的根目录路径,路径需要用\\  用于转义\)

linux上使用时,将office.home进行手动配置,否则可能会出现不能调启openoffice的问题,会报错 

[nio-8012-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.artofsolving.jodconverter.office.OfficeException: task did not complete within timeout] with root cause

 

{/if}