in reply to Re^2: Rotating a (PDF:::Table) Page Help!
in thread Rotating a (PDF:::Table) Page Help!

the parameter 'new_page_func' must be a function reference

This means, you need to pass it either the name of a subroutine, or an anonymous subroutine

which when executed will create a new page

... so said subroutine must create a new page. Maybe something like the following, but bear in mind that I have no idea of how to use PDF::Table:

new_page_func => sub { my ($pdf) = @_; # I don't know whether that's the parameter pa +ssed to this warn "Creating new page"; my $page = $pdf->page; # see PDF::API2 for pages ... do funky stuff with $page .... $page },

Replies are listed 'Best First'.
Re^4: Rotating a (PDF:::Table) Page Help!
by Anonymous Monk on Mar 31, 2009 at 19:26 UTC
    The docs have this, its similar on how this value should be passed to $pdftable->table, look at this:
    my $hdr_props = { # This param could be a pdf core font or user specified TTF. # See PDF::API2 FONT METHODS for more information font => $pdf->corefont("Times", -encoding => "utf8"), font_size => 10, font_color => '#006666', bg_color => 'yellow', repeat => 1, # 1/0 eq On/Off if the header row should +be repeated to every new page };

    But the problem is what to use in here if I create something like
    my $code_ref = { ? => ? };

    I thing that on ? above should the right parameters to be passed to "pdftable->table". And I don't know what they are or how to use this "B2-Landscape function" in order to get what I need.

      That's not how code references work.

        I am following the criteria here:
        http://search.cpan.org/~omega/PDF-Table-0.9.3/lib/PDF/Table.pm