views:

653

answers:

2

Any clue about a good library to programmatically produce a PDF in Java, using a PDF as a template?

+7  A: 

try iText. It has many many goodies. There is also a book about it by Manning iText in Action

TheVillageIdiot
+1 for iText in Action, great book
dfa
And +1 for iText itself.
skaffman
A: 

If you want to be able to edit the Text in the template, you should set up the template carefully and use forms for text content. You can't easily replace text in PDFs because they do not contain text structure.

There is a blog article highlighting some of the issues at http://pdf.jpedal.org/java-pdf-blog/bid/17370/Problems-editing-PDF-files