• problem with preview

  • 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.
 #12202  by nywjn
 
hello, I have a problem with preview .
my Configuration:
Code: Select all
system.ocr=C:\\jboss-4.2.3.GA\\moremodules\\Tesseract-OCR
system.openoffice.path=C:\\jboss-4.2.3.GA\\moremodules\\OpenOffice.org 3
system.openoffice.tasks=5
system.openoffice.port=2222
system.imagemagick.convert=C:\\jboss-4.2.3.GA\\moremodules\\ImageMagick-6.7.2-Q16\\convert.exe
system.swftools.pdf2swf=C:\\jboss-4.2.3.GA\\moremodules\\SWFTools
ERROR:
Code: Select all
IO exception executing command: C:\jboss-4.2.3.GA\moremodules\SWFTools -T 9 C:\jboss-4.2.3.GA\cache\pdf\59ab4fa5-d277-4943-83b9-f8fddad38679.pdf -o C:\jboss-4.2.3.GA\cache\swf\59ab4fa5-d277-4943-83b9-f8fddad38679.swf

Caused by: java.io.IOException: Cannot run program "C:\jboss-4.2.3.GA\moremodules\SWFTools": CreateProcess error=5, ???·?
What can I do, so that preview office documents will be available??
 #12263  by jllort
 
Tienes una configuración un poco estraña:

Esto :\\jboss-4.2.3.GA\\moremodules\\SWFTools debería ser algo asi como :\\jboss-4.2.3.GA\\moremodules\\pdf2swf.ese
y esto system.ocr=C:\\jboss-4.2.3.GA\\moremodules\\Tesseract-OCR mas de lo mismo, debería apuntar a un ejecutable.

Otro detalle a partir de la version 5.1.x recuerda que estas propiedades se deben modificar desde la base de datos.
 #12301  by Alexires
 
Hi all.
I've just updated to 5.1.8-nightly and I lost my preview for SOME pdf documents. I uploaded a test pdf for OCRing and found that 5.1.8 doesn't show previews in the web browser. Says "There was a problem with conversion generation"

This is the output from the start.sh terminal screen when I click preview:
15:11:58,549 WARN [ExecutionUtils] Abnormal program termination: 1
15:11:58,550 WARN [ExecutionUtils] STDERR:
15:11:58,550 ERROR [ConverterServlet]
com.openkm.core.ConversionException:
at com.openkm.util.DocConverter.pdf2swf(DocConverter.java:529)
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.Http11AprProcessor.process(Http11AprProcessor.java:856)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:566)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1508)
at java.lang.Thread.run(Thread.java:662)
I'm using tesseract 3, running OpenKM 5.1.8-nightly on xubuntu 11.04 "Natty". System is a 1.86GHz dual core, running 2gig ddr3.
 #12317  by nywjn
 
Hi,jllort ,thank you for your reply。I have other problem with dwg/dxf files。
Do you know how to realize this function?Thank you so much!!!
my configuration:
system.dwg2dxf=C:\\jboss-4.2.3.GA\\moremodules\\Acme CAD Converter\\AcmeCADConverter.exe
 #12350  by jllort
 
This extension is only available to our customers. If you want more information about it can contact with us at www.openkm.com/Contact
 #12516  by jllort
 
1- First try conversion to some doc to pdf if it runs the problem is on pdf2swf configuration, we'll be waiting the feedback
 #12603  by Alexires
 
Alright, I uploaded a .doc to OpenKM and then downloaded it using "Download as PDF Document" and it downloaded fine and worked. Hence, problem with pdf2swf?

Sorry it took me so long, have been flat out for a few weeks.
 #12607  by jllort
 
Yes, seems problem is on pdf2swf conversion tool. Test it directly from terminal, to see if there's some problem there.
Which pdf2swf version you've installed, and you're on 64 or 32 bits architecture ?
 #12630  by Alexires
 
Putting "pdf2swf -V" in the terminal yields the following:
"pdf2swf - part of swftools 0.9.1"

When attempting to convert one of the problem files (pdf2swf test.pdf -o test.swf), the following is given:
Code: Select all
WARNING fix bad advance value for char 0: bbox=1.00, advance=13.90
WARNING fix bad advance value for char 1: bbox=1.00, advance=13.90
WARNING fix bad advance value for char 0: bbox=1.00, advance=12.35
WARNING fix bad advance value for char 1: bbox=1.00, advance=12.35
NOTICE  processing PDF page 1 (312x475:0:0) (move:0:0)
NOTICE  File contains jpeg pictures
NOTICE  processing PDF page 2 (429x647:0:0) (move:-79:-74)
NOTICE  File contains Type3 fonts
NOTICE  File contains pbm pictures (masked)
NOTICE  processing PDF page 3 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 4 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 5 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 6 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 7 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 8 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 9 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 10 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 11 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 12 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 13 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 14 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 15 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 16 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 17 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 18 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 19 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 20 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 21 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 22 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 23 (429x647:0:0) (move:-79:-74)
NOTICE  processing PDF page 24 (429x647:0:0) (move:-79:-74)
ERROR   ID Table overflow
ERROR   This file is too complex to render- SWF only supports 65536 shapes at once
 #12819  by Alexires
 
Attempted using
Code: Select all
pdf2swf -f -t -G -s storeallcharacters test.pdf -o test.swf
and was given exactly the same error, however it stopped conversion at page 17 instead of page 24 like last time.

Still threw a ID Table Overflow.
 #12828  by jllort
 
try run with this paramters "-s poly2bitmap"
 #12852  by Alexires
 
Successfully outputted test.swf. Gave the following:
Code: Select all
 pdf2swf -s poly2bitmap test.pdf -o test.swf
WARNING fix bad advance value for char 0: bbox=1.00, advance=13.90
WARNING fix bad advance value for char 1: bbox=1.00, advance=13.90
WARNING fix bad advance value for char 0: bbox=1.00, advance=12.35
WARNING fix bad advance value for char 1: bbox=1.00, advance=12.35
NOTICE  processing PDF page 1 (312x475:0:0) (move:0:0)
NOTICE  processing PDF page 2 (429x647:0:0) (move:-79:-74)
NOTICE  File contains Type3 fonts
NOTICE  processing PDF page 3 (429x647:0:0) (move:-79:-74)
So, what's the plan from here?
 #12861  by jllort
 
In OpenKM administration change the pdf2swf for some pdf2swf .bat or .sh and put there your parameters the script will be called with two parameters ( if I'm not wrong ), that's the internal code
Code: Select all
String tpl = Config.SYSTEM_SWFTOOLS_PDF2SWF + " -T 9 ${fileIn} -o ${fileOut}";
I think this part is candidate to be changed, as we've done in ocr to specify all on administration data string, I've added the issue in http://issues.openkm.com/view.php?id=1887

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.