1

pdf invoice

the first digit is cancelled and the currency symbol isn't showing. how can i resolve this issues

1
  • What is the symbol?
    – Pekka
    Sep 23, 2015 at 13:29

2 Answers 2

1

Make sure the Symbol is part of the font you are using.

1

Please following below steps to solve the issue:-

  1. Choose a font that supports your currency symbol.

  2. Copy that supported font file (fontname.ttf) to magento_root/lib/<project_name>/ directory.

  3. Copy both files app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php and app/code/core/Mage/Sales/Model/Order/Pdf/Items/Abstract.php
    to
    app/code/local/Mage/Sales/Model/Order/Pdf/Abstract.php and app/code/local/Mage/Sales/Model/Order/Pdf/Items/Abstract.php respectively.

  4. Open both newly created files and replace $font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/LinLibertineFont/LinLibertine_Re-4.4.1.ttf');
    by
    $font = Zend_Pdf_Font::fontWithPath(Mage::getBaseDir() . '/lib/<project_name>/fontname.ttf');

Hope, if someone follow all these steps the problem should be solved.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.