in reply to Using PDF::Textblock
Looking at the docs for PDF::TextBlock, the apply method returns the text that didn't fit in the block. So I'd suggest following the apply with apply in a loop to create a new page as long as overflow isn't empty. I've not used the module before, but from the docs it appears that it should be something like this:
my ($endw, $ypos, $overflow) = $tb->apply(); while ($overflow ne '') { $tb = PDF::TextBlock->new( ... ); $tb->text("<i>Continued...</i><br/>" . $overflow); ($endw, $ypos, $overflow) = $tb->apply(); }
Since the text on successive pages are a continuation, you may want to alter the starting position and size of your text block, as well as handle any 'continued' message(es).
Update: Added a missing space (applyin --> apply in).
...roboticus
When your only tool is a hammer, all problems look like your thumb.
|
|---|