bassplayer has asked for the wisdom of the Perl Monks concerning the following question:
This allows me increment the pages as necessary after checking if I am at the bottom of the page:my $root = $pdf->new_page(); my @page; $page[0] = $root->new_page(); $page[1] = $root->new_page(); $page[2] = $root->new_page();
I have tested the value of $current_page at the relevant stages of the code, and while it is '2' (for the third page), the content still prints on page 2. I have also tried it with a hash instead of an array.( $current_page, $ycoord ) = check_page( $current_page, $ycoord ); $page[$current_page]->string( $font, $size, $xcoord, $ycoord, "TEXT");
bassplayer
|
|---|
| Replies are listed 'Best First'. |
|---|