my $pdf = PDF::API2::Simple->new( header => \&header, footer =>\&footer, margin_left => 15, margin_top => 15, margin_right => 15, margin_bottom => 45 );