Page 1 of 2
system.openoffice and previewer configuration for Windows
PostPosted:Mon Mar 05, 2012 3:46 pm
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!

Re: system.openoffice and previewer configuration for Windo
PostPosted:Tue Mar 06, 2012 8:22 am
by pavila
The system.pdftools.pdf2swf property requires que path to the pdf2swf executable.
Use the search box to find related posts.
Re: system.openoffice and previewer configuration for Windo
PostPosted:Tue Mar 06, 2012 1:29 pm
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.
Re: system.openoffice and previewer configuration for Windo
PostPosted:Wed Mar 07, 2012 6:16 pm
by pavila
You should set something like this:
- system.swftools.pdf2swf=c:\SWFTools\pdf2swf.exe
- system.openoffice.path=c:\Program Files\OpenOffice.org
Re: system.openoffice and previewer configuration for Windo
PostPosted:Wed Mar 07, 2012 6:28 pm
by sstrauss87
Like this? but it still doesn't work, so frustrated!

Re: system.openoffice and previewer configuration for Windo
PostPosted:Wed Mar 07, 2012 6:43 pm
by sstrauss87
windows 7
Openkm 5.1.9
Firefox, or Chrome
Srry forgot to mention this before
Re: system.openoffice and previewer configuration for Windo
PostPosted:Wed Mar 07, 2012 8:38 pm
by sstrauss87
This is what the command prompt says when I try to view a file
Code: Select all15: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%
Re: system.openoffice and previewer configuration for Windo
PostPosted:Thu Mar 08, 2012 7:39 am
by jllort
As is explained in migration guide
http://wiki.openkm.com/index.php/Migrat ... 8_to_5.1.9 the pdf2swf needs some extra parameters for this version
Code: Select allpdf2swf -T 9 -f ${fileIn} -o ${fileOut}
Re: system.openoffice and previewer configuration for Windo
PostPosted:Thu Mar 08, 2012 10:55 am
by pavila
system.openoffice.server should not be set.
Re: system.openoffice and previewer configuration for Windo
PostPosted:Thu Mar 08, 2012 1:19 pm
by sstrauss87
Thanks guys.

I wasn't sure if that applied to Windows, Everything in the Wiki looks like its written for the linux versions.
Re: system.openoffice and previewer configuration for Windo
PostPosted:Fri Mar 09, 2012 9:24 am
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.
Re: previewer configuration for Windows
PostPosted:Sat Mar 16, 2013 5:53 am
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?
Re: system.openoffice and previewer configuration for Windo
PostPosted:Mon Mar 18, 2013 7:09 pm
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 allsystem.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}
Re: system.openoffice and previewer configuration for Windo
PostPosted:Mon Mar 25, 2013 7:57 am
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 allsystem.swftools.pdf2swf=C:/tomcat/bin/swftools/pdf2swf.exe -T 9 -f -t -G -s storeallcharacters ${fileIn} -o ${fileOut}
or
Code: Select allsystem.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:

Re: system.openoffice and previewer configuration for Windo
PostPosted:Tue Mar 26, 2013 10:05 pm
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.