It's not a secret anymore!
The moose likes XML and Related Technologies and the fly likes writing a PDF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "writing a PDF" Watch "writing a PDF" New topic

writing a PDF

Kirti Kulkarni

Joined: May 10, 2006
Posts: 4
We have a requirement to read an xml file, merge data in it at proper places and then feed it to a PDF generator.

I have looked at some products which facilitate PDF template generation.
But we are interested in XML input as user can also change the spacing and font etc

Does anyone know any such product?

Thanks in advance!

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
This comes up frequently on various forums here - take a look at the XML forum particularly. To summarize, people recommend the open source Apache FOP (Formating Objects Project) and the iText toolkit.

I used FOP to handle XML to PDF conversions for a client. It worked quite well but I had to avoid certain XSL-FO tags that FOP does not implement. See this compliance document for the current state. The FOP has a VERY active mailing list and a helpful community.

I found the "Definitive XSL-FO" book by Holman to be a great reference, but the binding is way too stiff to behave right on the desk so I had it rebound by Kinkos in a lay-flat binding.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63852

Moved to the XML forum.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: writing a PDF
It's not a secret anymore!