• Preview unavailable in preview tab

  • 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.
 #3524  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?
 #3525  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
 #3530  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.
 #3541  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.

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.