OpenOffice in Java

Posted by user156073 on Stack Overflow See other posts from Stack Overflow or by user156073
Published on 2009-10-13T10:08:39Z Indexed on 2010/03/16 23:41 UTC
Read the original article Hit count: 327

Filed under:
|

I need a Java interface to the OpenOffice document conversion which would equal to a manual (Open... and then Save As...) as well as access to the PDF generation.

The following are some example of what I want to achieve.

1) Open one type of document (fx. OpenOffice Writer document or Microsoft Office document) onto memory and save it in another supported format.

2) Open one type of document into memory and export it as PDF.

I have gone through http://api.openoffice.org but didn't get any material which can help me to get started. I also tried JODConverter but it requires me to run OpenOffice as a service. I wold prefer to include all the core functionality of OpenOffice in one JAR file so that that the user can use my application without installing or running openoffice on their PC.

What would be a URL/code snippet from where I can get tutorials to get started?

Also do I have to add some JAR files? Will the application work even if I don't have OpenOffice installed on my PC?

© Stack Overflow or respective owner

Related posts about java

Related posts about openoffice.org