Page 1 of 1

IMG2PDF and DOC2PDF in Windows

PostPosted:Wed Oct 27, 2010 6:30 pm
by fortescr
How do I set the .cfg on windows to convert IMG to PDF and DOC to PDF?

To convert PDF to SWF pdf2swf.exe put the path and it worked, I followed the same logic to the Img2PDF and does not work, it creates a corrupted pdf.

Re: IMG2PDF and DOC2PDF in Windows

PostPosted:Wed Oct 27, 2010 7:24 pm
by pavila
You need ImageMagic "convert" utility for this. See http://wiki.openkm.com/index.php/Applic ... figuration.

Re: IMG2PDF and DOC2PDF in Windows

PostPosted:Thu Oct 28, 2010 10:33 am
by fortescr
Yes, I have ImageMagick installed and placed the path in OpenKM.cfg and does not work the conversion

Re: IMG2PDF and DOC2PDF in Windows

PostPosted:Thu Oct 28, 2010 2:54 pm
by jllort
put here your OpenKM.cfg

any error in server.log meanwhile you're trying conversion ?

Re: IMG2PDF and DOC2PDF in Windows

PostPosted:Thu Oct 28, 2010 5:22 pm
by fortescr
Not conversion, I'm just running.

I'm using version 5, I put the fixed paths. PDF preview of the works, the conversion of the document the error.

OpenKm.cfg
Code: Select all
system.pdf2swf=C:/marcel/SWFTools/pdf2swf.exe
system.img2pdf=C:/Program Files (x86)/ImageMagick-6.3.9-Q16/convert.exe
application.url=http://localhost:8081/sgq/es.git.openkm.frontend.Main/index.jsp
default.lang=pt-BR
system.openoffice=on
system.openoffice.path=C:/Program Files (x86)/BrOffice.org 3
Code: Select all
15:59:08,026 ERROR [DocConverter] Error in application/msword to PDF conversion
15:59:11,644 ERROR [OKMDownloadServlet] Error in application/msword to PDF conversion
java.io.IOException: Error in application/msword to PDF conversion
	at es.git.openkm.util.DocConverter.doc2pdf(DocConverter.java:302)
	at es.git.openkm.frontend.server.OKMDownloadServlet.service(OKMDownloadServlet.java:164)
	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:179)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
	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(Unknown Source)
Caused by: java.io.IOException: Error convertind document: conversion failed
	at es.git.openkm.util.DocConverter.convert(DocConverter.java:370)
	at es.git.openkm.util.DocConverter.doc2pdf(DocConverter.java:298)

Re: IMG2PDF and DOC2PDF in Windows

PostPosted:Thu Oct 28, 2010 6:37 pm
by jllort
In that segment code (line 302) is doing pdf2swf conversion.

You're talking about OpenKM 5.0 ? or older ?
Which pdftools have you installed, windows version etc... take a look at windows process task for pdf2swf task, is created and consumes memory ?
which os version do you have ?
what among of ram memory ?
32 or 64 bits ?

You can delete de parameter, it's deprecated for version 5.0
Code: Select all
 system.openoffice=on

Re: IMG2PDF and DOC2PDF in Windows

PostPosted:Thu Apr 14, 2016 5:23 am
by alstonamos
PDF to SWF pdf2swf.exe put the path and it worked, I followed the same logic to the Img2PDF and does not work, it creates a corrupted PDF????

Re: IMG2PDF and DOC2PDF in Windows

PostPosted:Sat Apr 16, 2016 10:18 am
by jllort
For converting word to pdf you need to have soffice ( libreoffice or openoffice started )