in reply to Re^6: Rotating a (PDF:::Table) Page Help!
in thread Rotating a (PDF:::Table) Page Help!
So what part of
the parameter 'new_page_func' must be a function reference
makes you think that passing a hash reference to it is the right way to go forward on this?
I looked into the source code of PDF::Table and it directly calls the new_table_func reference whenever it needs a new page:
if(ref $arg{'new_page_func'}) { $page = &{$arg{'new_page_func'}}; } else { $page = $pdf->page; }
... so, if you return to my above example, and modify it as follows:
... new_table_func => sub { my $next_page = $pdf->page; $next_page->rotate(90); return $next_page; },
that should be all you need. But feel free to pursue other approaches at your leisure.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Rotating a (PDF:::Table) Page Help!
by Anonymous Monk on Mar 31, 2009 at 20:00 UTC | |
by Corion (Patriarch) on Mar 31, 2009 at 20:19 UTC | |
by Anonymous Monk on Mar 31, 2009 at 22:00 UTC | |
by Anonymous Monk on Mar 31, 2009 at 20:12 UTC |