Some time ago i want to print invoice with chinese font. So i upload chinese font and changed to
$font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/LinLibertineFont/BiauKai.ttf');
Works very well i was partly happy because
- Invoice had chinese font
- Invoice size was about 14MB
So i wanted change font and i discover that my invoice have error, when i click "print" i got blank page and error:
[error] [client 82.160.17.218] PHP Fatal error: Call to a member function getPdf() on a non-object in /home/local/public_html/app/code/core/Mage/Adminhtml/Controller/Sales/Invoice.php on line 119, referer: localhost/index.php/admin/admin/sales_order_invoice/view/invoice_id/299/order_id/491/