• OpenKM 1.5.9 document any type preview doesn't work

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #14105  by melal
 
I'm configuring at the moment OpenKM 1.5.9 on Fedora 16. Everything is OK, OpenKM just a perfect system, but only one issue can't be solved by me. When I'm trying click "Preview" tab for documents of the following types, for example: pdf, png, jpg etc. - I see only "There was a problem with the conversion generation. Please, contact your OpenKM administrator." Of course, there is a problem with LibreOffice, but it's not important fro me now as soon there is a problem at the level of DocConverter initially. Obviosly there exists a bug for LibreOffice at jodconverter but this quietsion will be for another topic, as now I need help for graphics and PDF files only.

My settings:
system.ghostscript.ps2pdf String /usr/bin/ps2pdf
system.imagemagick.convert String /usr/bin/convert
system.ocr String /usr/bin/tesseract
system.openoffice.path String /usr/lib/libreoffice
system.openoffice.port Integer 2002
system.openoffice.tasks Integer 200
system.previewer String zviewer
system.swftools.pdf2swf String /usr/bin/pdf2swf

Installed software:
swftools-0.9.1-5.fc16.i686
ImageMagick-6.7.0.10-4.fc16.i686

Trying acces a graphics file I see in my server.log:
Code: Select all
2012-02-23 15:51:17,112 WARN  [com.openkm.util.ExecutionUtils] Abnormal program termination: 1
2012-02-23 15:51:17,112 WARN  [com.openkm.util.ExecutionUtils] STDERR: 
2012-02-23 15:51:17,112 ERROR [com.openkm.servlet.frontend.ConverterServlet] 
com.openkm.core.ConversionException: 
	at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:528)
	at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:226)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:106)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:419)
	at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:378)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
	at java.lang.Thread.run(Thread.java:662)
Please advise, any help will be appreciated sincerely!
 #14109  by melal
 
OK, the problem is solved partially. Just have changed setting for pdf2swf inside admin panel from:
Code: Select all
system.swftools.pdf2swf	String	 /usr/bin/pdf2swf
to
Code: Select all
system.swftools.pdf2swf	String	 /usr/bin/pdf2swf ${fileIn} ${fileOut}
and therefore I can preview PDF files now. But still have problem with another graphics files: jpg, png, etc., server.log gives the following error:
Code: Select all
2012-02-23 20:10:20,001 WARN  [com.openkm.util.ExecutionUtils] Abnormal program termination: 1
2012-02-23 20:10:20,001 WARN  [com.openkm.util.ExecutionUtils] STDERR: Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

2012-02-23 20:10:20,002 ERROR [com.openkm.servlet.frontend.ConverterServlet] Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

com.openkm.core.ConversionException: Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

	at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:528)
	at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:226)
	at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:106)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
	at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
	at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
	at org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcessor.java:419)
	at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:378)
	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
	at java.lang.Thread.run(Thread.java:662)
 #43744  by jllort
 
Why are you still running this old OpenKM version 1.5.9 it's very very old, that is totally unsupported. When you are trying to preview a document should be some error, take a look at server.log file and share it with us ( please only the section with log error ).

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.