I'm trying to learn PDF:Template in order to automate some PDF production (phone lists, price lists, the like0). The following code works great until the content reaches the end of the page, then it appears to hang indefinitaly and according to top its not even using up a ton of resources.
#!/usr/bin/perl
use strict;
use warnings;
use CGI qw/:standard/;
use PDF::Template;
my $pdf = PDF::Template->new(filename => 'report.xml');
my $loop = [];
push @$loop, {Name => "Test" , Address => rand} for 1..80;
$pdf->param( records => $loop );
print header(-type=>'application/pdf'), $pdf->get_buffer;
TEmplate:
Hello World |
|
Any ideas?
--traveler
perlmonks.org content © perlmonks.org and dragonchild, eric256, traveler
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03