I have just added customer comment at the end of pdf invoice.
however some texts on comment are broken.
(prices are removed on purpose)
the orignal comment is :
please add these to today;s order: clark coat red XL arthur coat navy medium cosmo orange medium harness amelia navy lg coat amelia red large coat thanks
and here's the code added to invoice.php.
$order = $invoice->getOrder();$orderComment = $order->getCustomerComment()? $order->getCustomerComment() : $order->getCustomerNote();$page->drawText($orderComment, 35, $this->y -=10, 'UTF-8');
could anyone help me with broken texts? and how do I break lines?