cancel
Showing results for 
Search instead for 
Did you mean: 

Document preview problem was fixed by changing libreoffice's ctl.sh to libreoffice_ctl.sh

billydekid
Star Contributor
Star Contributor
Hi,

I just want to share how to fix the problem of document preview which sometimes not fully functional on loading some of certain files.

I use Alfresco 5.0.a on Ubuntu 14.04.

One of the problem occurred when opening .docx files.
Document preview just showing a thumbnail image instead of full frame of document viewer.

The problem can be solved by changing libreoffice's ctl script in alfresco.sh; from ctl.sh to libreoffice_ctl.sh (since ctl.sh is not exist on libreoffice's script dir).

OLD:
LIBREOFFICE_SCRIPT=$INSTALLDIR/libreoffice/scripts/ctl.sh

NEW
LIBREOFFICE_SCRIPT=$INSTALLDIR/libreoffice/scripts/libreoffice_ctl.sh

Next I restarted Alfresco and problem is solved! Smiley Happy
Document viewer frame is appear instead of document thumbnail image…

Regards,
[bayu]
1 ACCEPTED ANSWER

luceros
Champ in-the-making
Champ in-the-making

Hi, I resolve this problem changing the path of libreoffice installation on alfresco-global.properties.

From:

ooo.exe=/opt/alfresco-community/libreoffice/program/soffice.bin

to

ooo.exe=/usr/bin/soffice

then I restart alfresco service et voilà.
You must find soffice file on your sistem (this works on linux).

Bye, bye.

View answer in original post

21 REPLIES 21

Hi, !

Thank you very much for your comment!..

luceros
Champ in-the-making
Champ in-the-making

Hi, I resolve this problem changing the path of libreoffice installation on alfresco-global.properties.

From:

ooo.exe=/opt/alfresco-community/libreoffice/program/soffice.bin

to

ooo.exe=/usr/bin/soffice

then I restart alfresco service et voilà.
You must find soffice file on your sistem (this works on linux).

Bye, bye.