title: PHP + PDF Line Break
body: <p>I have the below code in my Magento store it adds the customers address to the invoice PDF's. Sometimes the lines of the address would be too long for the address labels so I added the $value = wordwrap($text, 10, "<br />\n"); line thinking this could create a new line. However, this doesn't seem to work in PDF docs and i just end up with a funny symbol where I'd like the line to be. does anyone know how I can get a new line? </p>
  
  <p>P.S - My PHP knowledge is very basic. </p>
  
  <pre><code>if (!$order-&gt;getIsVirtual())
  {
  if ($this-&gt;y &lt; 250)
  {
  $page = $this-&gt;newPage();
  }
  
  $this-&gt;_setFontRegular($page, 6);
  $page-&gt;drawText('Ship to:', 75, 222 , 'UTF-8');
  
  $shippingAddress = $this-&gt;_formatAddress($order-&gt;getShippingAddress()-&gt;format('pdf'));
  
  $line = 185;
  $this-&gt;_setFontRegular($page, 12);
  
  $num_lines = count($shippingAddress);
  $curr_line = 0;
  foreach ($shippingAddress as $value)
  {
  $curr_line += 1;
  
  if ($curr_line &lt; $num_lines)
  {
  if ($value!=='')
  {
  $value = wordwrap($value, 20, "\n");
  $page-&gt;drawText(strip_tags(ltrim($value)), 75, $line, 'UTF-8');
  $line -=14;
  }
  }
  }
  } 
  </code></pre>