Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Xml to pdf

 
Peter Venema
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm a lonely java developer in a non-java company. Maybe someone can advise me here.

I want to make a "print option" for a huge xml document. I've got experience with fop, xsl so I can build some action that converts the xml doc to pdf.

But how to i18n? I've already got an action that works well with jsp, it's not perfect yet. But for our purposes (print policy information for life insurances) it works o.k. With the Struts framework it's easy to i18n.

Would it be an idea to use JAXB to map the xml to objects (so I can use them for other purposes as well). And than first create a jsp which will be converted to pdf? It sounds like a very slow process to me. I read that JAXB is very slow to, it's very easy to use though.

Can somebody give me some advice here?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about writing a servlet filter which takes the internationalized XML document (perhaps created by a JSP) and runs it through XSL-FO into PDF?

Then again, if the document really is big, perhaps you should do this asynchronously?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic