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.
The moose likes Web Services and the fly likes HTML -> Java Browser -> PDF printer  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "HTML -> Java Browser -> PDF printer  " Watch "HTML -> Java Browser -> PDF printer  " New topic

HTML -> Java Browser -> PDF printer

Olexandr Prokhorenko

Joined: Feb 10, 2005
Posts: 12

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.

Thank you!
I agree. Here's the link:
subject: HTML -> Java Browser -> PDF printer
It's not a secret anymore!