• text/plain preview problem

  • 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.
 #28470  by aramesh
 
I know this has been discussed before but those threads have not helped me\
I am running OpenKM 6.2.5 build 8109

As suggested in the other threads
I have made changes to the configurations as follows
system.openoffice.path [C:\Program Files\LibreOffice 4\
system.openoffice.port 2002
system.openoffice.tasks 200
system.pdf.force.ocr Inactive
system.swftools.pdf2swf C:\Program Files\SWFTools\pdf2swf.exe -T 9 -f ${fileIn} -o ${fileOut}

and I am getting the following errors

Thanks in advance.
:|
Code: Select all
014-05-01 21:15:04,122 [http-bio-0.0.0.0-8080-exec-6] ERROR com.openkm.servlet.frontend.ConverterServlet - Error in text/plain to P
DF conversion
com.openkm.core.ConversionException: Error in text/plain to PDF conversion
        at com.openkm.util.DocConverter.doc2pdf(DocConverter.java:248)
        at com.openkm.servlet.frontend.ConverterServlet.toPDF(ConverterServlet.java:221)
        at com.openkm.servlet.frontend.ConverterServlet.toSWF(ConverterServlet.java:273)
        at com.openkm.servlet.frontend.ConverterServlet.service(ConverterServlet.java:144)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 #28471  by omnicron
 
Is openoffice running? I dont use the windows for openkm but 6.2.5 in linux will run openoffice as a service that I can see in the task lists and see listening on the correct port. I would check for that first. Does it only do it for .txt and not .doc or other similar files? Do .pdf view properly?
 #28483  by jllort
 
The error is clear, can not convert documento to pdf
Code: Select all
com.openkm.core.ConversionException: Error in text/plain to PDF conversion
at com.openkm.util.DocConverter.doc2pdf
As says omnicron you've not well configured soffice service, take a look here http://wiki.openkm.com/index.php/Previsualization

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.