Page 1 of 1

preview of .otp files and images like .png and .jpg

PostPosted:Fri Jul 02, 2010 12:29 pm
by timsen
Hi,
first I want to thank you for such a great product and the possibility to use it as a open source application.

I installed the latest version
Code: Select all
[Version: 4.1 (build: 1683)]
and nearly everything works like a charm.

I installed the following additional packages to my Debian Lenny instance: openoffice.org-calc openoffice.org-writer openoffice.org-impress swftools

So the preview for .pdf and .ott and .rtf and so on is working like a charm.

But now to my problem, I searched this forum to get an information how to configure the OpenKM instance to preview image files like jpg and png files, as described I installed swftools and I added the following rows to my OpenKM.cfg but the rows are not recognized if I check in the the running config in the administration panel after a restart of the system.
Code: Select all
system.png2swf=/usr/bin/png2swf
system.jpeg2swf=/usr/bin/jpeg2swf
So is it in general possible to preview images like jpg and png and is it also possible to preview any OpenOffice document type besides of Calc and Writer files?

Thank you all in advance for a reply and best regards from Germany, Timsen

Re: preview of .otp files and images like .png and .jpg

PostPosted:Fri Jul 02, 2010 6:39 pm
by jllort
We use soffice to convert any document to pdf ( internally ) and then we use pdftoswf to converting pdf to sfw ( flash viewer ) you don't need the others.

I'll investigate the jpg and png trying to use the same preview tab for images in OpenKM 5.0.

Re: preview of .otp files and images like .png and .jpg

PostPosted:Mon Jul 05, 2010 5:06 am
by saketh
Hi,
I had a small problem with preview.When i look for a preview of a jpeg,msoffice it's showing below error
"There was a problem with preview generation
Please contact your openkm administrator
"

plz tell me the solution...
Thank You....

Re: preview of .otp files and images like .png and .jpg

PostPosted:Mon Jul 05, 2010 8:19 am
by timsen
saketh wrote:Hi,
I had a small problem with preview.When i look for a preview of a jpeg,msoffice it's showing below error
"There was a problem with preview generation
Please contact your openkm administrator
"

plz tell me the solution...
Thank You....
Hi saketh,
on which plattform are you running the OpenKM instance? Linux? Which OpenOffice packages are installed?
Starts the soffice process in the background listening to port 8100? But if I understand correctly contacts
OpenKM this process in the background to convert the document to pdf format.

Can you please post your OpenKM.cfg file so that we can check whats configured so far and if you run
the run.sh via a shell (if you use linux) is there any logoutput while the error message is shown in the
OpenKM frontend?

Timsen

Re: preview of .otp files and images like .png and .jpg

PostPosted:Mon Jul 05, 2010 8:40 am
by saketh
Hi,
i am runing on windows vista...

here is my openkm.cfg code:

# Default configuration values
#
# repository.config=repository.xml
# repository.home=repository
# system.user=system
# default.user.role=UserRol
# default.admin.role=AdminRol
# principal.adapter=com.openkm.core.UsersRolesPrincipalAdapter
# max.file.size=5
# max.search.results=25
# system.demo=on
update.info=off
restrict.file.mime=off
restrict.file.extension=*~,*.bak,._*
max.file.size=25
system.openoffice=on
system.ocr=/C:/Program Files/tesseract-1.03
system.pdf2swf=/C:/Program Files/SWFTools/pdf2swf

Re: preview of .otp files and images like .png and .jpg

PostPosted:Mon Jul 05, 2010 9:27 am
by timsen
saketh wrote:Hi,
i am runing on windows vista...

here is my openkm.cfg code:

.......
I tried MS Word and Excel files in my OpenKM instance and it shows a preview without any errors.
As stated in my first post I have only problems with the preview of image files like .jpg and .png for example.

Can you ensure that the openOffice (soffice) process is started in the background after you started the
JBOSS instance? In Windows maybe via the task manager or via netstat -ao command?
For me it seems that your openKM can not contact the soffice process in the background to convert
the files to pdf format.

Tim

Re: preview of .otp files and images like .png and .jpg

PostPosted:Mon Jul 05, 2010 9:50 am
by saketh
can you show me your openkm.cfg code
Thank you...

Re: preview of .otp files and images like .png and .jpg

PostPosted:Mon Jul 05, 2010 10:39 am
by timsen
saketh wrote:can you show me your openkm.cfg code
Thank you...
As stated in my first post in this thread I am running my production OpenKM under a Linux Debian.
But I made a quick test on a Windows Box and there it works now with the following steps.

1. Install latest OpenOffice Suite
2. check and correct following lines in your OpenKM.cfg
Code: Select all
system.openoffice=on
system.pdf2swf=C:/Programme/SWFTools/pdf2swf.exe
3. Run soffice.exe in server mode. (therefore navigate with the Windows command line interface into the folder where soffice.exe is located) on my box:
cd "c:\Programme\OpenOffice.org 3\program"
Afterwards run the following command (when you are in the folder where soffice is located:
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
taken from http://www.artofsolving.com/node/10
4.Startup the OpenKM instance freshly again with the run.bat file.

Afterwards check the preview for a .doc or .xls file.

Re: preview of .otp files and images like .png and .jpg

PostPosted:Mon Jul 19, 2010 6:18 am
by timsen
With the current version in demo.openkm.com the preview of .png and jpg,jpeg files works now, while in my current running system with Version: 4.1 (build: 1683) these file types are not previewed. Was / is there any code change to version 5.0 to fix the problem with the preview of image files?

Thank you in advance for your feedback and regards, Timsen

Re: preview of .otp files and images like .png and .jpg

PostPosted:Mon Jul 19, 2010 2:38 pm
by pavila
Image preview is only available at OpenKM 5.0 (actually under development)