There are some opensource freeware Third Party utilities available.
iText - is one of the famous and widely used one. Its very simple to use and you can find example codes in their site also.
just download the jar file, put it in your classpath and start developing.
Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside HereWEBlog
I am in the middle of such project right now, using the Apache FOP library with XSLT. The FOP library is pretty complete for basic FO but does not do all the extension functions. Bill
Not so fast naughty spawn! I want you to know about
Free, earth friendly heat - from the CodeRanch trailboss