Thursday, May 26, 2011

OpenOfficeConverter using Java

You can possible convert any document to pdf or presentation file to swf using OpenOffice Service and JOD Api.
Download Openoffice installer from following url - http://download.openoffice.org/other.html

Openoffice must be installed on machine where WebServer/AppServer is running and Openoffice service must be started/listening.
To start Openoffice service use following command :
    * for Linux: /path/to/openoffice/program/soffice.bin -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice.Service"
    * for Mac OS X: /path/to/openoffice.app/Contents/!MacOS/soffice.bin -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice.Service"
    * for Windows: soffice.exe -headless -nofirststartwizard -accept="socket,host=localhost,port=8100;urp;StarOffice.Service"

To know more about OO service visit - http://code.google.com/p/openmeetings/wiki/OpenOfficeConverter

JOD Api Link - http://www.artofsolving.com/opensource/jodconverter

No comments:

Post a Comment