Page 1 of 1

pdf and excel file preview is not working with me

PostPosted:Tue Sep 24, 2013 6:16 am
by alooosh
Hi experts , I really liked to use the openKM , but I don't know why preview of files like excel and pdf not working with me , I did the same as required
this what I did
- I have installed open office and run its service on port 8100 and set it as automatically
- I have changed configuration of openkm.cfg like this:
system.openoffice.path=C:/Program Files/OpenOffice 4
system.openoffice.port=8100
system.openoffice.tasks=5

and system.swftools.pdf2swf=C:/tools/pdf2swf.exe

I have used "/" instead of "\" because that is what I read in the tutorial
what else I miss , and this is my log error"
Code: Select all
ERROR com.openkm.servlet.frontend.ConverterServlet - Error in application/vnd.ms-excel to PDF conversion
com.openkm.core.ConversionException: Error in application/vnd.ms-excel to PDF conversion
	at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:248)
	at com.openkm.servlet.frontend.ConverterServlet.toPDF(ConverterServlet.java:221)
	at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:273)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:144)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: this OfficeManager is currently stopped
	at org.artofsolving.jodconverter.office.ProcessPoolOfficeManager.execute(ProcessPoolOfficeManager.java:70)
	at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:78)
	at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:69)
	at com.openkm.util.DocConverter.convert(DocConverter.java:228)
	at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:245)
	... 43 more
I am using windows 7 as openKM server

Re: pdf and excel file preview is not working with me

PostPosted:Thu Sep 26, 2013 7:14 am
by jllort
Which openkm version are you using ?

Re: pdf and excel file preview is not working with me

PostPosted:Thu Sep 26, 2013 11:28 pm
by kknd
the corrent config line is:

system.swftools.pdf2swf=c:\\tools\\pdf2swf.exe -T 9 -f -t -G -s storeallcharacters ${fileIn} -o ${fileOut}

:D

Re: pdf and excel file preview is not working with me

PostPosted:Sat Sep 28, 2013 3:00 pm
by jllort
looking with more care the error:
Code: Select all
Caused by: java.lang.IllegalStateException: this OfficeManager is currently stopped
Seems for some reason soffice service started by openkm has not been succesfuly started or killed in action :)
1- Stop openkm
2- ensure there're no soffice application running ( pay attenion if you're on windows do not get openoffice icon in right botton -> openoffice tools. If it's the case kill it ).
3- start openkm and take a look in log ( at ends ) if there's some error starting soffice.

If all goes right and soffice starts with openkm, try conversion again ( converting a document to pdf ). With it will be sure the soffice service is right.