I've got a rather bizarre requirement at the moment (at least in
my mind) where people want to be able to get a report of what their screen
looked like. In other words if you fill in an order form, the administrator
doesn't want just any old report describing your order, he wants a report
that looks *just like* the screen you filled in. I suppose, in theory, I
could write the world's most complicated report to try to replicate what the
order form looked like, but then I have to keep two parallel things in
synch; never a good idea.
What I was hoping to do was simply use the existing tapestry
engine, which already knows how to render an order form, and then capture
the resulting character stream in memory instead of sending it out to a
client. Then I want to take that HTML document and translate it into a PDF.
So my question is, can anyone recommend an open source library
that takes HTML input and produces PDF output? I poked around a bit on
google, but most of what I found want to take a meta-format and then produce
either PDF or HTML, whereas I already have the HTML and want to go directly
to PDF.
Any suggestions?
--- Pat