Page 1 of 1

preview is not working for all files except pdf

PostPosted:Tue May 15, 2012 9:41 am
by rasha123
Hi,

i am using openkm 5.1.9, successfully integrated with active directory under linyx.

now im trying to preview file but unfotuntly i am strugguling :S

i can only preview PDF file , not not , .doc or imgage o .opt

i installed imagemagick
Code: Select all
user@OpenKM:~$ convert 
Version: ImageMagick 6.6.0-4 2012-04-30 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP 
also openoffice with this command line $ sudo apt-get install openoffice.org but it gives me this error
Code: Select all
user@OpenKM:~$ libreoffice 
Failed to open display
i installed ghostscript
Code: Select all
basim@OpenKM:~$ ghostscript 
GPL Ghostscript 9.04 (2011-08-05)
Copyright (C) 2011 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>
i found pdf2swf in /bin but couldn't really locate where are convert , ghostscritp and openoffice !!!
my configuration file is
Code: Select all
system.dwg2dxf	String 		
system.ghostscript.ps2pdf	String 	/home/user/openkm/jboss-4.2.3.GA/bin/ps2pdf 	   
system.imagemagick.convert	String 	/home/user/openkm/jboss-4.2.3.GA/bin/convert 	   
system.openoffice.dictionary	String 		   
system.openoffice.path	String 	/home/basim/.libreoffice/ 	   
system.openoffice.port	Integer 	2222 	   
system.openoffice.server	String 		   
system.openoffice.tasks	Integer 	5 	   
system.pdf.force.ocr	Boolean 	Inactive 	   
system.previewer	String 	zviewer 	   
system.readonly	Boolean 	Inactive 	   
system.swftools.pdf2swf	String 	/home/basim/openkm/jboss-4.2.3.GA/bin/pdf2swf -T 9 -f ${fileIn} -o ${fileOut} 	   
system.webdav.fix	Boolean 	Inactive 	   
system.webdav.server	Boolean 	Inactive[code]
in this is the error fron the log
[code]ERROR [ConverterServlet] Error in application/vnd.oasis.opendocument.text to PDF conversion

com.openkm.core.ConversionException: Error in application/vnd.oasis.opendocument.text to PDF conversion

	at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:311)

	at com.openkm.servlet.frontend.ConverterServlet.toPDF(ConverterServlet.java:188)

	at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:225)

	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.http11.Http11Processor.process(Http11Processor.java:844)

	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

	at java.lang.Thread.run(Thread.java:662)

Caused by: java.lang.NullPointerException

	at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:75)

	at org.artofsolving.jodconverter.OfficeDocumentConverter.convert(OfficeDocumentConverter.java:66)

	at com.openkm.util.DocConverter.convert(DocConverter.java:251)

	at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:308)
im really confused here any help please :( :(

Re: preview is not working for all files except pdf

PostPosted:Tue May 15, 2012 12:49 pm
by rasha123
i changed my configuration to
Code: Select all
system.dwg2dxf	 		   
system.ghostscript.ps2pdf	String 	/usr/bin/ps2pdfwr 	   
system.imagemagick.convert	String 	/usr/bin/convert 	
system.ocr	String 		   
system.openoffice.dictionary	String 		   
system.openoffice.path	String 	/usr/share/doc/openoffice.org 	   
system.openoffice.port	Integer 	2002 	   
system.openoffice.server	String 		   
system.openoffice.tasks	Integer 	200 	   
system.pdf.force.ocr	Boolean 	Inactive 	   
system.previewer	String 	zviewer 	   
system.readonly	Boolean 	Inactive 	   
system.swftools.pdf2swf	String 	/home/basim/openkm/jboss-4.2.3.GA/bin/pdf2swf -T 9 -f ${fileIn} -o ${fileOut} 
now pdf an jpg is working still cant open any .opt or doc files.!! any help please :(

Re: preview is not working for all files except pdf

PostPosted:Tue May 15, 2012 1:11 pm
by rasha123
problem solved !!

i used libreoffice instead restarted jboss and working fine now :)