-1

I have a web application (built with Java).

The user fills in a bunch of field, some stuff is dynamically assembled, and the read only form is presented to the user, then the user clicks "Approve" if they're okay with everything.

On the "Approve" click, I need to build a PDF version of the HTML page and store the PDF away in a database for safe keeping.

I've doing some digging, but not finding what I need. What's an easy open source way of making a PDF version of my HTML page?

I found iText, but it requires a commercial license (a show-stopper, unfortunately). Any other suggestions are greatly appreciated!

  • 1
    Similar question probably http://stackoverflow.com/q/633780/776084 – RanRag Sep 26 '12 at 17:26
  • 1
    Note that iText also offers an AGPL licence (which might also be a show-stopper) but I mention for completeness... – DNA Sep 26 '12 at 19:47

1 Answers1

2

Use Apache™ FOP (Formatting Objects Processor) - most advanced for java. FAQ: Can I use FOP to convert XHTML or HTML files to PDF? . But it is not a very easy way, sorry.

Chris Gerken
  • 16,221
  • 6
  • 44
  • 59
Dmitry
  • 86
  • 3