in reply to Re^3: PDF::API2::Simple - pass parameter to header
in thread PDF::API2::Simple - pass parameter to header
Erorr: Not a CODE reference at...my $pdf = PDF::API2::Simple->new( header => \&my_header($CategoryName), footer => \&footer, margin_left => 15, margin_top => 15, margin_right => 15, margin_bottom => 45 ); sub my_header { my $pdf = shift; my $cat = shift; print $cat; header($pdf); } sub header { my $pdf = shift; # do my stuff }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: PDF::API2::Simple - pass parameter to header
by Corion (Patriarch) on Mar 11, 2010 at 15:55 UTC | |
by constantin.iliescu (Initiate) on Mar 12, 2010 at 09:56 UTC |