You may want to take a look at The Flying Saucer Project:
https://xhtmlrenderer.dev.java.net/
It uses iText to convert xhtml to pdf.
First use jTidy, or something similar, to convert your hml to proper xhtml.
For a better result, you may also want to enrich your source html with CSS3
"page"-related directives before generating the PDF.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092711#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...