Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Writing a paragraph to a pdf [PDF::API2]

by pvaldes (Chaplain)
on Apr 20, 2016 at 15:07 UTC ( [id://1161006] : note . print w/replies, xml ) Need Help??


in reply to Writing a paragraph to a pdf [PDF::API2]

UPDATED: Showing the correct way to use the method paragraph (and avoid the need to place \n around the text): Thanks to poj.

$txt->paragraph("This is a text that fits in a rectangle of 50x200 in the pdf current page. Newlines are placed automatically if needed, but any text reaching the lower limit of the given height will not be printed", 50, 200);

Replies are listed 'Best First'.