Using OpenOffice API to generate PDF documents
By sebsto on août 19, 2008
The sample NetBeans project is available for you to download.
This sample does the following :
- It creates an empty text document (using OO's writer application)
- It inserts the content of a template (another document containing text, images, etc ...)
- It searches and replaces occurences of tags (like @name@) with actual data
- It saves the resuting document as PDF
Using this technique, you can generate professional looking PDF documents from your Java application using only free and open-source softwares.
As usual, I welcome your comments and feedbacks.