more useful options | |
PerlMonks |
Re: Using PDF::Textblockby roboticus (Chancellor) |
on Aug 07, 2014 at 10:51 UTC ( [id://1096593]=note: print w/replies, xml ) | Need Help?? |
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:
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.
In Section
Seekers of Perl Wisdom
|
|