in reply to Re^2: PDF::API2::Simple - pass parameter to header
in thread PDF::API2::Simple - pass parameter to header
I'm not sure whether your callback ever gets passed the current page number. The best is to wrap the header subroutine with your own header:
sub my_header { # ... do your own stuff: print "Got parameters @_\n"; # Call old header routine to output other stuff header(); }; my $pdf = PDF::API2::Simple->new( header => \&my_header, footer =>\&footer, margin_left => 15, margin_top => 15, margin_right => 15, margin_bottom => 45 );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: PDF::API2::Simple - pass parameter to header
by constantin.iliescu (Initiate) on Mar 11, 2010 at 15:49 UTC | |
by Corion (Patriarch) on Mar 11, 2010 at 15:55 UTC | |
by constantin.iliescu (Initiate) on Mar 12, 2010 at 09:56 UTC |