Back to Blog

How to display indian currency properly in pdf in Magento 2.x

  • Download the font that support Indian Rupee symbol. please download dejavu-sans font.
  • copy  DejaVuSans.ttf place the above font folder in lib/LinLibertineFont/ directory.



$font = \Zend_Pdf_Font::fontWithPath(
// $this->_rootDirectory->getAbsolutePath(‘lib/internal/LinLibertineFont/LinLibertine_Re-4.4.1.ttf’)

(in _setFontRegular()_setFontBold()_setFontItalic() functions in both files.)

Share this post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to Blog