Page 1 of 1

No any Document shows the Preview

PostPosted:Thu Aug 03, 2017 1:04 pm
by pra838
Hi,

I am new to OpenKM and install "OpenKM - Knowledge Management Version: 6.3.2 (build: 8289)".
But I can not get any document's preview.

Path in configuration.
system.openoffice.path String /usr/bin/libreoffice

When click preview nothing show in "catalina.log ".

Please Help.

Thanks/
Pra838

Re: No any Document shows the Preview

PostPosted:Fri Aug 04, 2017 6:17 am
by pra838
PDF and JPG are working... But word/exel/txt not preview work.
Please help.
Code: Select all
system.ocr	String	system.ocr=/usr/bin/tesseract ${fileIn} ${fileOut} -l deu
system.openoffice.path	String	/usr/lib64/libreoffice/program/soffice.bin
system.openoffice.port	Integer	2002	Edit    Delete
system.openoffice.server	String		Edit    Delete
system.openoffice.tasks	Integer	200
system.swftools.pdf2swf	String	/home/openkm/tomcat/bin/pdf2swf -f -T 9 -t -s storeallcharacters ${fileIn} -o ${fileOut}
Log :
Code: Select all
017-08-04 09:49:24,601 [ajp-bio-127.0.0.1-8009-exec-3] ERROR com.openkm.servlet.frontend.ConverterServlet- Error in applicati                                                                                                               on/vnd.openxmlformats-officedocument.wordprocessingml.document to PDF conversion
com.openkm.core.ConversionException: Error in application/vnd.openxmlformats-officedocument.wordprocessingml.document to PDF c                                                                                                               onversion
        at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:330)
        at com.openkm.servlet.frontend.ConverterServlet.toPDF(ConverterServlet.java:253)
        at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:308)
        at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:152)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:1

Re: No any Document shows the Preview

PostPosted:Sat Aug 05, 2017 6:50 pm
by jllort
Seems the problem is that you do not have configured libreoffice or openoffice ( I suggest the first option ).
Take a look at:
https://docs.openkm.com/kcenter/view/ok ... ation.html
https://docs.openkm.com/kcenter/view/ok ... eters.html

After get it configured you must restart OpenKM. To ensure all is right, you should have a process named "soffice.bin" or with similar name ( also you can check catalina.log file for an office error while starting up the application.