This website uses cookies to ensure you get the best experience. Learn More.
Manual to support preview of different file format
Install OpenOffice in local system to work with LifeRay in order to display the preview of different types of file. LifeRay will interact with OpenOffice to convert
Current file format into pdf format as LifeRay internally supports PDFBox.
Run the following command to start OpenOffice:
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;"
Open portal-ext.properties file and add following line at the end:
openoffice.server.enabled=true
openoffice.server.host=127.0.0.1
openoffice.server.port=8100
openoffice.cache.enabled=true
openoffice.conversion.source.extensions[drawing]=odg
openoffice.conversion.source.extensions[presentation]=odp,ppt,pptx,sxi
openoffice.conversion.source.extensions[spreadsheet]=csv,ods,sxc,tsv,xls,xlsx
openoffice.conversion.source.extensions[text]=doc,docx,html,odt,rtf,sxw,txt,wpd
openoffice.conversion.target.extensions[drawing]=pdf,svg,swf
openoffice.conversion.target.extensions[presentation]=odp,pdf,ppt,swf,sxi
openoffice.conversion.target.extensions[spreadsheet]=csv,ods,pdf,sxc,tsv,xls
openoffice.conversion.target.extensions[text]=doc,odt,pdf,rtf,sxw,txt
Run LifeRay server through eclipse IDE and goto Control Panel of LifeRay.
Server -> Server Administration ->Open External Service Tab -> Enable open office integration -> Tick on Enables check in button -> save