• Plain Text 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.
 #7397  by danielv117
 
Hi everyone,

I'm running OpenKM 5.0 RC1 on Ubuntu 8.04 with Firefox 3.6.12, Java 1.6.0_22, and OpenOffice.org 2.4.1.

I've gotten most file type previews to work (pdf, doc, jpg) except plain text. I get the error message "Document URL not provided or invalid." In server.log I see messages such as:
Code: Select all
15:46:09,172 ERROR [DocConverter] Error in text/plain to PDF conversion
15:46:09,173 ERROR [OKMDownloadServlet] Error in text/plain to PDF conversion java.io.IOException: Error in text/plain to PDF conversion

Caused by: java.io.IOException: Error convertind document: could not load document: okm418351947660189211.doc
I tried previewing a .txt file that I found on demo.openkm.com and got the same error message.

Is this a known problem or am I doing something wrong?
Thanks, Daniel
 #7447  by pavila
 
Is a OpenOffice problem. A more recent version can work better, but can't promise you. If the text file has few chars seems to fail more often than bigger text files.
 #9444  by ndhoang
 
i have the same problem with OpenKM 5.0.2. I can't preview any .txt file in Preview tab.

But i think i've found a way to solve it.

1. Log in OpenKM with administration account.
2. Go to Administration tab
3. Click on Mime types button
4. Scroll down "text/plain" line and click on Edit button
5. Change extension value from "properties txt" to "txt". Done. :roll:
 #9497  by pavila
 
You should try a more recent OpenOffice release (like 3.2.1) because in 2.x the document conversion have some bugs.

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.