Page 1 of 1

Preview unavailable in preview tab

PostPosted:Mon Dec 21, 2009 2:00 pm
by tim
In 1st of all. Thank you guys for exellent system.

Version OpenKM 4.0
Server Ubuntu Server 9.04

How to enable preview generation for preview tab for images?
Can i generate preview for PDF and DOC files with pdf2swf module and OpenOffice?

Re: Preview unavailable in preview tab

PostPosted:Mon Dec 21, 2009 4:12 pm
by pavila
First of all, thanks! :D

For document preview you need to install the pdf2swf utility. In Ubuntu is as simple as installing the swftools package. And you have to start OpenOffice.org in server mode. Also you need to add these two entries in the OpenKM.cfg file:
Code: Select all
system.openoffice=on
system.pdf2swf=/usr/bin/pdf2swf

Re: Preview unavailable in preview tab

PostPosted:Mon Dec 21, 2009 5:15 pm
by jllort
Remember after changing OpenKM.cfg, jboss must be restarted

Re: Preview unavailable in preview tab

PostPosted:Mon Dec 21, 2009 7:15 pm
by tim
thx for quick response.

I had installed OOo and swftools.

had started OOo in server mod by command
Code: Select all
soffice \"-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager\" -nologo -headless -nofirststartwizard
from Pavila's post http://forum.openkm.com/viewtopic.php?f ... fice#p1270

had added two entries in the OpenKM.cfg file:
Code: Select all
system.openoffice=on
system.pdf2swf=/usr/bin/pdf2swf
jBoss is restarted

Now I see label "There was problem with the preview generation..." in preview tab for .PDF and .DOC files and unavailable preview for images.

JBoss posted in log
Code: Select all
Error in application/msword to PDF conversion
java.net.ConnectException: connection failed: socket,host=localhost,port=8100,tcpNoDelay=1: java.net.ConnectException: Connection refused
I'm understand that my openOffece isn't respond to OpenKM, but maybe you know true way =)

I see similar situation in your demo.

Re: Preview unavailable in preview tab

PostPosted:Wed Dec 23, 2009 10:27 am
by pavila
The command to start OpenOffice.org as service is this (seems to be equals as you posted):
Code: Select all
soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard
Preview only works with some type of documents like PDF, MS Office and OpenOffice.org. Currently does not work with images. Also you can try to stop JBoss, delete the $JBOSS_HOME/cache folder and start JBoss again.

The preview wasn't working in OpenKM because OpenOffice.org was down, thanks.

Re: Preview unavailable in preview tab

PostPosted:Thu Dec 24, 2009 4:40 pm
by tim
Thank you, guys.
Working fine!