The second half of your challenge, AFAICS, is in principle the same as writing an on-the-fly PDF doc from any data source. If that's right, then it's a subject I've grappled with a little bit, and where I've found the existing PDF modules didn't do quite what I wanted for the most part - surprising, given what one comes to expect to find at CPAN, and a challenge for a module writer perhaps.
I settled on PDF::Create, which has relatively limited functionality, but is easy to learn and very much does what it says on the can. I also wrote some routines which are half way between script and module, that I used to extend its capabilities. They, and some other things you might find useful, are in this thread
If you do find something that works, it would be interesting to know about it - good luck!
§ George Sherston
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.