• system.openoffice and previewer configuration for Windows

  • 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.
 #14289  by sstrauss87
 
Having some trouble getting the previewer to work right. Hoping someone can help me out.

I have attachments showing my settings and what my previewer is showing me, thanks for any tips! :)
Attachments
previewer.JPG
previewer.JPG (33.39 KiB) Viewed 10976 times
OpenKmSettings.JPG
OpenKmSettings.JPG (52.86 KiB) Viewed 10976 times
 #14315  by sstrauss87
 
Thanks for the reply.
Whenever I try to direct them to the executable the configuration check says it cannot be read. When I send it to the folder the check goes fine. Neither way seems to work.
Attachments
configcheck2.PNG
configcheck2.PNG (7.6 KiB) Viewed 10964 times
configcheckl.PNG
configcheckl.PNG (10.98 KiB) Viewed 10964 times
 #14356  by sstrauss87
 
This is what the command prompt says when I try to view a file
Code: Select all
15:36:59,952 INFO  [LRUNodeIdCache] num=226/10240 hits=766 miss=559234
15:36:59,975 INFO  [BundleCache] num=1350 mem=8187k max=8192k avg=6210 hits=495508 miss=64492
15:37:08,254 WARN  [ExecutionUtils] Abnormal program termination: 1
15:37:08,257 WARN  [ExecutionUtils] STDERR:
15:37:08,257 ERROR [ConverterServlet]
com.openkm.core.ConversionException:
        at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:528)
        at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:223)
        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)
15:37:40,657 INFO  [DocNumberCache] size=18/1024, #accesses=2813, #hits=2756, #misses=57, cacheRatio=98%
 #14400  by jllort
 
Our development environment and major customer server are linux, really that's the place where any application will get major performance. Althought it, we take in special consideration windows users too. Really openkm is platform independant. We test always in linux and windows environments, but obviously if our development environment and major customers uses linux servers, these has more deep present in wiki by default.

We try always explaining so deep as we can how doing configurations, but understanding - in linux world too - that depending your OS ( there're a lot of think that depending linux distribution debian, red hat, suse, etc... have some diferences how is described in wiki ). We suppose there're some administrator skills with theirs servers and OS, we indicate the way so good as we can, but we can not walk for you.
 #21733  by rajawasthi
 
My problem is about previewing pdf file.

OpenKM Version 6.2.2
OS Windows 7 Home Premium 32 bit

I have installed swftools version 0.9.0 into C:\SWFTools, downloaded from http://www.swftools.org/
I have update OpenKm.cfg file as "system.swftools.pdf2swf=c:/SWFTools/pdf2swf.exe "
I have changed the value in setting of Administration tab for the key system.swftools.pdf2swf as c:/SWFTools/pdf2swf.exe.

What could be the problem the error is as: Conversion:C:\tomcat\repository\datastore\ef\5e\.......(The system can not find the path specified)

Shall I have to do any other setting besides above mentioned?
 #21756  by jllort
 
Can you download the file that you try to convert ?
Try convert the file from command line.
If you take a look at wiki swftools configuration http://wiki.openkm.com/index.php/SWFTools you'll see the parameter configuration should be something like
Code: Select all
system.swftools.pdf2swf=c:\\SWFTools\\pdf2swf.exe -T 9 -f ${fileIn} -o ${fileOut}
I think in your configuration have forgot the ends of the configuration parameter -T 9 -f ${fileIn} -o ${fileOut}
 #21829  by rajawasthi
 
Thanks for reply jllort,

Though I have a problem of previewing all kind of files like image , MS-office files and pdf but first I want to solve the problem of pdf. A such I posted the issue for pdf only. I knew that for image file I have to install s/w imagemagick and for MS-office files I should install and configure for openOffice. That I will illustrate later.

For PDf files:

I have updated my OpenKM.cfg file as :
Code: Select all
system.swftools.pdf2swf=C:/tomcat/bin/swftools/pdf2swf.exe -T 9 -f -t -G -s storeallcharacters ${fileIn} -o ${fileOut}
or
Code: Select all
system.swftools.pdf2swf=C:\\tomcat\\bin\\swftools\\pdf2swf.exe -T 9 -f -t -G -s storeallcharacters ${fileIn} -o ${fileOut}
I have changed the value in setting of Administration tab for the key system.swftools.pdf2swf as C:/tomcat/bin/swftools/pdf2swf.exe . Also during the configuration checking everything is ok.

Hope to get a solution for it.

Now I able to download the file but still problem of pre-viewing. The error is as:

Image
 #21849  by jllort
 
I suggest try pdf2swf.exe directly from your terminal to see if there's some error other side the both configuration seems right. Anyway is strange place to store swftools, is not necessary install into tomcat folder or subfolder can be outside without major problem.

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.