Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF Output Broken When Using Official Chinese Translation #117

Closed
sprankhub opened this issue Mar 5, 2014 · 1 comment · Fixed by #157
Closed

PDF Output Broken When Using Official Chinese Translation #117

sprankhub opened this issue Mar 5, 2014 · 1 comment · Fixed by #157
Assignees
Labels

Comments

@sprankhub
Copy link
Member

When using the official Chinese translation, the output of the PDF is broken. See this screenshot (thanks @ming2014):

c9cd2e60-a252-11e3-9203-57ab5e70567e

When developer mode is enabled, you get a notice like this:

Notice: iconv(): Detected an illegal character in input string  in /var/www/magento170/shop/lib/Zend/Pdf/Resource/Font/Simple.php on line 267

#0 [internal function]: mageCoreErrorHandler(8, 'iconv(): Detect...', '/var/www/magent...', 267, Array)
#1 /var/www/magento170/shop/lib/Zend/Pdf/Resource/Font/Simple.php(267): iconv('UTF-8', 'CP1252//IGNORE', '??????')
#2 /var/www/magento170/shop/lib/Zend/Pdf/Canvas/Abstract.php(1045): Zend_Pdf_Resource_Font_Simple->encodeString('??????', 'UTF-8')
#3 /var/www/magento170/.modman/firegento-pdf/src/app/code/community/FireGento/Pdf/Model/Engine/Abstract.php(962): Zend_Pdf_Canvas_Abstract->drawText('??????', 25, 47, 'UTF-8')
#4 /var/www/magento170/.modman/firegento-pdf/src/app/code/community/FireGento/Pdf/Model/Engine/Abstract.php(855): FireGento_Pdf_Model_Engine_Abstract->_insertFooterAddress(Object(Zend_Pdf_Page))
#5 /var/www/magento170/.modman/firegento-pdf/src/app/code/community/FireGento/Pdf/Model/Engine/Abstract.php(833): FireGento_Pdf_Model_Engine_Abstract->_insertFooter(Object(Zend_Pdf_Page))
#6 /var/www/magento170/.modman/firegento-pdf/src/app/code/community/FireGento/Pdf/Model/Engine/Abstract.php(618): FireGento_Pdf_Model_Engine_Abstract->_addFooter(Object(Zend_Pdf_Page), Object(Mage_Core_Model_Store))
#7 /var/www/magento170/.modman/firegento-pdf/src/app/code/community/FireGento/Pdf/Model/Engine/Invoice/Default.php(72): FireGento_Pdf_Model_Engine_Abstract->newPage()
#8 /var/www/magento170/.modman/firegento-pdf/src/app/code/community/FireGento/Pdf/Model/Invoice.php(78): FireGento_Pdf_Model_Engine_Invoice_Default->getPdf(Array)
#9 /var/www/magento170/shop/app/code/core/Mage/Adminhtml/Controller/Sales/Invoice.php(119): FireGento_Pdf_Model_Invoice->getPdf(Array)
#10 /var/www/magento170/shop/app/code/core/Mage/Adminhtml/controllers/Sales/Order/InvoiceController.php(489): Mage_Adminhtml_Controller_Sales_Invoice->printAction()
#11 /var/www/magento170/shop/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Adminhtml_Sales_Order_InvoiceController->printAction()
#12 /var/www/magento170/shop/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('print')
#13 /var/www/magento170/shop/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#14 /var/www/magento170/shop/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#15 /var/www/magento170/shop/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#16 /var/www/magento170/shop/index.php(87): Mage::run('', 'store')
#17 {main}

This problem also occurs when using the default Magento PDF engine. Hence, it is a Magento bug and not a FireGento_Pdf bug. Anyway, we should think of providing a solution for it.

@ming2014
Copy link

ming2014 commented Mar 6, 2014

thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants