• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTML -> Java Browser -> PDF printer

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.

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!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic