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