• problem with MS/OpenOffice and jpeg preview

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #11222  by rmm
 
I've been researching this problem for a long time. I can't really preview files like MS/OpenOffice and jpg file types.
swiftools and ImageMagick are working fine.. I can convert pdf to swf, png and gif files are working as well.
I have tested the convert utility directly on files and it's working.
What should I do in order to view this types of files. Attached herein is my OpenKM.cfg
Code: Select all

#system.ocr=/usr/bin/cuneiform
system.openoffice=on
system.openoffice.path=/usr/bin/soffice
system.imagemagick.convert=/usr/bin/convert
system.swftools.pdf2swf=/usr/local/bin/pdf2swf
#system.antivir=/usr/bin/clamscan
#hibernate.dialect=org.hibernate.dialect.HSQLDialect
hibernate.hbm2ddl=none
system.previewer = flexpaper
#application.url=http://localhost:8080/OpenKM/com.openkm.frontend.Main/index.jsp
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
system.webdav.server=on

 #11238  by rmm
 
i got the ms/openoffice working! i just set openoffice path:

system.openoffice.path=/usr/lib/openoffice.org3
and then i just openened the port 2002 in my firewall. OpenOffice cannot convert doc to pdf because port 2002 is not enabled yet.
My only problem right now is the conversion of jpg files. hope someone will help me..
 #11245  by rmm
 
I've been trying to convert jpg files directly on my resources to pdf files and it is not generating into pdf's.
But when I try to convert .png and .gif to pdf it is working.
What should I do in order to correct this? I am using ImageMagick v.6.2.8. Does it need ghostscript or not? anyway, i already have ghostscript.
Should I migrate to a higher version because I have read an article that newer versions seems to correct this..
 #11297  by rmm
 
sorry for the late reply sir. I have downloaded the latest version 5.1.5
Don't worry anymore. I have successfully previewed jpg files in openkm... I seek help in ImageMagick forum.
I found that I have the latest jpeg library installed in my Centos 5.5 server so I had to remove it.

the error in the server.log is:
Code: Select all
15:01:49,920 WARN [DocConverter] Abnormal program termination: {}1
15:01:49,921 WARN [DocConverter] STDERR: Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table
when I try to convert jpg files in pdf manually, the error says:
Code: Select all
Wrong JPEG library version: library is 62, caller expect
I removed the old ImageMagick version and downloaded a stable release, then I removed also the latest jpeglib and downloaded an old version. I have installed everything and it runs smoothly.
Thanks for your reply sir. I hope this thread will help someone.

nald =)
 #11307  by pavila
 
A lot of configuration problems are related to Operating System configuration. For this reason I recommend using Debian 6 or a recent Ubuntu release. You can save a lot of time and won't waste hours fighting with Gremlins. :mrgreen:

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.