0

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);
Dominik Barann
  • 675
  • 2
  • 10
  • 25
  • possible duplicate of [Zend Framework PDF multiline problems](http://stackoverflow.com/questions/1330322/zend-framework-pdf-multiline-problems) – bishop Aug 12 '15 at 12:43
  • Definitely a duplicate. The short answer is that you need to manually split your strings and call the drawText() method multiple times. – JamesG Aug 13 '15 at 02:06

0 Answers0