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.
b. Web Content / Wiki
i. Configuration > Setup > Enable Conversion To
ii. Choose preferred document type.
iii. Save
iv. Document conversion enabled with top-right document icons appeared.
Done!!
with this approach, there are no effort from developers for document conversion. ONLY configuration.
Platform:
Liferay 6.1.1
OpenOffice 3.4
OS - Windows 7
Steps:
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=127.0.0.1,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.
b. Web Content / Wiki
i. Configuration > Setup > Enable Conversion To
ii. Choose preferred document type.
iii. Save
iv. Document conversion enabled with top-right document icons appeared.
Done!!
No comments:
Post a Comment