This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I've got a big site, completely in HTML (JSP) with CSS, etc. I've got a task to automatically generate PDF from any of the URL of this site.
XML-FO - is not an answer. First of all, the way HTML-FO-PDF isn't very short, and besides, it doesn't understand a lot of HTML extensions, as well as CSSes, etc.
HTMLDOC - is not an answer, too. It generates too terrible PDF sometimes, besides, doesn't know what CSS, too.
The last thing which comes into my mind is a server-side HTML printing to PDF printer. The result is the good-looking in most cases. However, there is another problem, is how to do this Java server-side printing of HTML, as HTML should be rendered (!) first (and this should be done automatically!). As for the free software, the only thing which I found is JRex, but it's pretty wet and I believe it'd be bad in the automatic mode running on production server. Unfortunetly, we can't allow commercial software at this moment.
Have anybody tried to solve this problem and had anyone suceeded? I'd be very thankful for any suggestion.