I have found this article where interesting.
However this part is puzzling me:
"Then, using iText's template capability, we loaded the PDF file into our application. From there, it was quite easy to fill in data values on the form and output the final PDF document."
Hear us Roar