> At 00:45 25/07/03, Fong, Anna wrote:
> >I'd like to create a PDF template that I can use on a Unix server and
> >populate the template from a database to create new PDFs for future
> >editions of this report. I do have Perl and DBI installed, though
> >probably not the versions required by Template-Toolkit.
>
Here's what I do all the time:
Genereate the html :
my $html = makehtml();
my $pdf = makepdf($html);
Then I runt that through htmldoc via qx() and print an application/pdf header it
actually looks more like this:
#!/usr/bin/perl -w
use strict;
use CGI qw(:standard);
print header('application/pdf');
print makepdf(makehtml());
sub makehtml { do database/TT thing here and returnt the results }
sub makepdf { run it through htmldoc like their wite describes and voila! }
HTH
Dmuey
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates