http://www.perlmonks.org?node_id=1161006


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);