my dog learned polymorphism*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "writing a PDF" Watch "writing a PDF" New topic
Author

writing a PDF

Kirti Kulkarni
Greenhorn

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!

Regards,
Kirti
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
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.

Bill
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61434
    
  67

Moved to the XML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: writing a PDF