Java HTML – > PDF solution?
I am currently using java to build PDF - based reports I've seen iText and birt, but it seems that I need to spend a lot of energy learning their API. What I'm trying to find is a solution for me to generate reports (what I already know) in HTML and output them to PDF Who can provide some possible solutions Thank you! – Duncan Krebs
Solution
Flying saucer converts XHTML to PDF fantastic. It's not fast If there is a slight error in your XHTML syntax, it will fail (for example, < br > should be < br / >)
This is a link to get me started It seems to use iText, but once you have a job, just change the HTML and update it
http://today.java.net/pub/a/today/2007/06/26/generating-pdfs-with-flying-saucer-and-itext.html
There may be a better way. That's the way I do it