Page 1 of 1

problem with MS/OpenOffice and jpeg preview

PostPosted:Mon Jun 06, 2011 3:51 am
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


Re: problem with MS/OpenOffice and jpeg preview

PostPosted:Tue Jun 07, 2011 3:15 am
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..

Re: problem with MS/OpenOffice and jpeg preview

PostPosted:Wed Jun 08, 2011 1:07 am
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..

Re: problem with MS/OpenOffice and jpeg preview

PostPosted:Sat Jun 11, 2011 9:48 am
by jllort
About which openkm version are we talking ?

Re: problem with MS/OpenOffice and jpeg preview

PostPosted:Mon Jun 13, 2011 5:15 am
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 =)

Re: problem with MS/OpenOffice and jpeg preview

PostPosted:Mon Jun 13, 2011 9:04 pm
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: