Page 1 of 1

Can't Preview office doc.

PostPosted:Thu Sep 30, 2021 3:49 am
by BenjaminSu
Hi,
I installed OpenKM Community Version 6.3.2 (Build 8289) and Open Office 4.1.10 in Windows 10.
I could preview PDF file and download office files (Word, Excel, PowerPoint) as PDF file but can't preview office files, text file and jpeg file.
I had checked the open office not start before starting OpenKM and there is no ERROR message in OpenKM log file.(catalina)
Below is the configuration check result.
Could someone advise how to fix preview issue? Thanks a lot

system.swftools.pdf2swf
OK - C:\SWFTools\pdf2swf.exe
system.imagemagick.convert
OK - C:\tomcat\bin\convert.exe
system.ocr
Not configured
system.openoffice.path
OK - C:\Program Files (x86)\OpenOffice 4\program\soffice.bin

Re: Can't Preview office doc.

PostPosted:Sun Oct 03, 2021 8:03 am
by jllort
* First, you should upgrade to version 6.3.11 the version 6.3.2 is an older version.
* I suggets upgrade to Libreoffice 7.x

Share log to check:
1- stop openkm
2- delete all files into tomcat-xxxxx/logs
3- start openkm
4- try preview document

zip logs folders and share here

Re: Can't Preview office doc.

PostPosted:Mon Oct 04, 2021 12:49 am
by BenjaminSu
Thank you jllort.
I had upgraded Open KM to version 6.3.11 and installed LibreOffice 7.1.6. \
However, the configuration check result show error as below.
system.openoffice.program
Can't read or execute: C:\Program

My setting in configuration is as below.
system.openoffice.program String C:\Program Files\LibreOffice\program\soffice.exe

Now the preview function is workable. Should I concern the error message in configuration check result?

Thanks

Re: Can't Preview office doc.

PostPosted:Sat Oct 09, 2021 6:16 pm
by jllort
Change windows path to Java path:
Code: Select all
C:\Program Files\LibreOffice\program\soffice.exe to C:/Program Files/LibreOffice/program/soffice.exe