• Pdf2swf problems

  • 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.
 #13305  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
 #13308  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.
 #13313  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
Attachments
openkm.JPG
openkm.JPG (139.18 KiB) Viewed 4041 times
 #13318  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
 #13335  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 ?

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.