Page 1 of 1

Pdf2swf problems

PostPosted:Mon Dec 26, 2011 5:26 pm
by gpetrom
Hi

I have playing with Openkm in the last two weeks and i am very pleased with the program
So far i have managed to setup openkm with apache and mysql as database. I have setup also OpenOffice 3.2 and pdf2swf.
I think that i found out two bugs
One when i upload documents with zip file and i have greek characters they don t upload correctly this also happens in your demo site. With java uploader everything works ok.
Second when i preview a document and i try to print it. It prints a small preview I have also tried it in your demo and it happens also there.This problem is not happening if i choose flexpaper as viewer.
Now i have a problem preview documents with words that have fonts with shadows. I have test it in your demo and in your demo works ok.
The convert to pdf is working ok and if i save it to my hard disk it shows ok. If i manual convert a pdf file to swf i also see it to firefox or chrome ok. So i think is something with the pdf2swf command line arguments. Here is what command line arguments i am using
Code: Select all
  1 #!/bin/bash
  2
  3 /usr/local/bin/pdf2swf -f -t -G -s storeallcharacters $*
In your demo site do you use the same?

Thanks and sorry if my English are bad

Re: Pdf2swf problems

PostPosted:Tue Dec 27, 2011 7:54 am
by jllort
Which OpenKM version are you using, because from 5.1.x the command options can be directly set in configuration parameters like:
Code: Select all
/usr/local/bin/pdf2swf -f -t -G -s storeallcharacters ${fileIn} ${fileOut} 
Take a look here http://wiki.openkm.com/index.php/OCR

Does pdf2swf executes correctly in your terminal ? in our online demo probably we've got latest pdf2wf version 0.9.X which version do you have ?
About zviewer consider upgrade your flash player, it's the only reason why could not view correctly, give us some screenshot to understand what's happening.

Re: Pdf2swf problems

PostPosted:Tue Dec 27, 2011 12:19 pm
by gpetrom
Hi thanks for reply

Server setup
Debian 6, openkm 5.1.8, swftools 0.9.1, OpenOffice 3.2,
Client setup
Flash player latest version 6 update 30, windows 7 64 bit, firefox 8

I have tried what you told me and conversion does not work here is the log from the server. if i put it in batch file conversion works
Code: Select all
011-12-27 13:46:39,551 WARN  [com.openkm.util.ExecutionUtils] Abnormal program termination: 1
15900 2011-12-27 13:46:39,551 WARN  [com.openkm.util.ExecutionUtils] STDERR: Error: Do you want the output to go to /tmp/swf/c3f5964d-cf6f-4ea2-859d-94c59428d50f.swf or to /tmp/o      km6665016252562164488.pdf?
15901 2011-12-27 13:46:39,551 ERROR [com.openkm.servlet.frontend.ConverterServlet] Error: Do you want the output to go to /tmp/swf/c3f5964d-cf6f-4ea2-859d-94c59428d50f.swf or to       /tmp/okm6665016252562164488.pdf?
15902 com.openkm.core.ConversionException: Error: Do you want the output to go to /tmp/swf/c3f5964d-cf6f-4ea2-859d-94c59428d50f.swf or to /tmp/okm6665016252562164488.pdf?
15903         at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:529)
15904         at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:223)
15905         at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:106)
15906         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
15907         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
15908         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15909         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
15910         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
15911         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
15912         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
15913         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
15914         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
15915         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
15916         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
15917         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
15918         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
15919         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
15920         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
15921         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
15922         at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
15923         at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
15924         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
15925         at java.lang.Thread.run(Thread.java:662)
See uploded screen shot for the font problem
In my terminal it pdf2swf works fine and i see it ok in my browser
About the bugs i mentioned is it something with openkm or with debian

Thanks

Re: Pdf2swf problems

PostPosted:Tue Dec 27, 2011 4:09 pm
by gpetrom
Hi

I have managed to solve the problem with uploading files with zip. I have to compress files with UTF8 and i managed that with 7zip command line

Thanks

Re: Pdf2swf problems

PostPosted:Thu Dec 29, 2011 5:32 pm
by jllort
I suggest upper flash player version 9 or 10.

About uploading files with zip I don't understanding the relation with the problem ?