tmocide Posted November 5, 2010 Share Posted November 5, 2010 Hi,My carrier name is quite long and subsequently overlaps the next column. Can someone tell me how i can insert a line break after 33 characters in the pdf class file for the carrier name? $pdf->Cell(70, 6, self::l('Carrier:').($order->gift ? ' '.Tools::iconv('utf-8', self::encoding(), $carrier->name) : ''), 'L'); Thanks!! Link to comment Share on other sites More sharing options...
Patric Posted November 5, 2010 Share Posted November 5, 2010 Topic moved into the good section. Link to comment Share on other sites More sharing options...
tomerg3 Posted November 5, 2010 Share Posted November 5, 2010 try to replace $carrier->name with wordwrap($carrier->name, 33, '\n'); Link to comment Share on other sites More sharing options...
tmocide Posted November 5, 2010 Author Share Posted November 5, 2010 no dice ;[ no errors just doesnt fix it ergg Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now