• IMG2PDF and DOC2PDF in Windows

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
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.
 #6927  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.
 #6936  by jllort
 
put here your OpenKM.cfg

any error in server.log meanwhile you're trying conversion ?
 #6938  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)
 #6939  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
 #41602  by jllort
 
For converting word to pdf you need to have soffice ( libreoffice or openoffice started )

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.