Wednesday, December 26, 2012

How to integrate Liferay with OpenOffice for document conversion

The objective is to enable document conversion in Liferay with OpenOffice.
with this approach, there are no effort from developers for document conversion. ONLY configuration.

Liferay 6.1.1
OpenOffice 3.4
OS - Windows 7

1. Start OpenOffice as a listening service
    a. navigate to the <OpenOffice_installation_directory>/program
    b. execute the following command in command prompt
        soffice -headless -accept="socket,host=,port=8100;urp;" -nofirststartwizard 
2. Configure Liferay external service.
    a. Login to Liferay as administrator
    b. Goto Control Panel > Server Administration > External Services
    c. In the OpenOffice section, check Enabled, and port  as 8100
    d. Save

3. Document conversion
    a. Document and Media
        When viewing a document in Document and Media portlet, there are more options to perform document conversion. 
more conversion options
    b. Web Content / Wiki
        i. Configuration > Setup > Enable Conversion To
       ii. Choose preferred document type.
check Doc, RTF
      iii. Save
      iv. Document conversion enabled with top-right document icons appeared.


No comments:

Post a Comment


Related Posts Plugin for WordPress, Blogger...