Zend PDF draw text with new line in variable

2.1k Views Asked by At

I have a variable with the following content. Now I have to draw that text on a pdf file with Zend PDF but the new line is ignored. How can i draw the break?

$text = 'line1\nline2';
$page->drawText($text, 100, 100);
0

There are 0 best solutions below