Black Vagrant has asked for the wisdom of the Perl Monks concerning the following question:

If the text is long, and goes beyond the vertical pages (Y-axis), the text is simply clipped ... How to determine that the text goes beyond the current page? Maybe I can just get the module to add a new page automatically?

Replies are listed 'Best First'.
Re: PDF::API2 auto create new page
by poj (Abbot) on Apr 20, 2016 at 13:31 UTC
    See PDF::API2::Content
    $overflow_text = $txt->paragraph $text, $width, $height, %options
    
    Apply the text within the rectangle and return any leftover text.
    
    poj
      Wow, wtf?! how you find this? why developer hide this function? Many thanks!
Re: PDF::API2 auto create new page
by crusty_collins (Friar) on Apr 20, 2016 at 13:29 UTC
    Could you send us an example of your code and a use case?