Duncan Krebs Duncan Krebs - 8 months ago 48
Java Question

Java HTML->PDF Solutions?

I'm currently working on building a PDF based report in Java. I have looked at iText and BIRT but it seems like a lot of effort to learn their API's what I'm trying to find is a solution that will let me generate the report in HTMl (something I already know) and output that to PDF. Can anyone provide some possible solutions? - Thanks! - Duncan krebs


Flying Saucer converts XHTML to PDF. It is great. It is not fast. It fails if there is a slight error in your XHTML syntax. (such as <br> when it should be <br/>)

This is the link that got me started. It seems to use iText, but once you have the thing working, just change the HTML and it updates.


There may be a better way, this is how I did it.