News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

how to display "₹" (Indian Rupee Symbol) on VM invoice PDFs

Started by godsgracetech, October 15, 2017, 07:48:14 AM

Previous topic - Next topic

godsgracetech

Hello,
I have been watching this post for solution since two months :-), but no response from anyone. Did anyone find the solution the for this issue ? We are able to display the "₹" rupee symbol on the website and emails, but not in the Invoice that we generate from VM administrator. It is showing as "?" when we generate invoice into PDF. I tried many suggestion that i found in this forum, but no solution.

Appreciate if any body can help us to fix this issue as soon as possible.

Thanks

Studio 42

You should try deja vu font.
It have more special char inside so certainly can render your "₹" symbol
Some info here https://www.fontsquirrel.com/fonts/dejavu-sans

VMTemplates.net

Hi,

try these solutions:
https://stackoverflow.com/questions/6721295/google-web-fonts-and-pdf-generation-from-html-with-wkhtmltopdf

@font-face with base64 can be pasted into 'CSS Styles for the Document:' field in VirtueMart -> Shop at invoice Invoice tab.

Thanks,
Jason
We develop VirtueMart templates since 2008
https://www.virtuemarttemplates.net/
Join the VirtueMart Templates Club today and get an access to over 60 VirtueMart templates
https://www.virtuemarttemplates.net/template-club.html
If you need a custom VirtueMart Template design please visit https://www.virtuemarttemplates.net/custom-virtuemart-template-design.html
Visit our new shop https://demo.virtuemarttemplates.net/
Join the VirtueMart Templates Club, purchase the template or order one of our services like Hosting, Website Maintenance, Security and Optimization, Template Customization and more

Studio 42

VMTemplates.net, Vm can only use tcpdf to generate orders. so why a link to wkhtmltopdf ?
And tcpdf do not support webfonts as i know

godsgracetech

Quote from: Studio 42 on October 15, 2017, 11:58:25 AM
You should try deja vu font.
It have more special char inside so certainly can render your "₹" symbol
Some info here https://www.fontsquirrel.com/fonts/dejavu-sans

Thank you for your suggestion, how can i use this font style  in our website in our Joomla Virtuemart..?

Appreciate your help.

Thank You

Studio 42


You have to change the font in the CSS, if this is declared.
And in config too.
To have dejavu in the list add a file :
JOOMLAROOT/libraries/tcpdf/fonts/dejavusans_specs.xml
<?xml version="1.0" encoding="UTF-8"?>
<font>
  <fontname>Deja vu</fontname>
  <fonttype>Base font</fonttype>
  <filename>dejavusans</filename>
  <version>1.0</version>
  <creationDate>2012-11-28</creationDate>
  <author>The VirtueMart Development Team</author>
  <copyright>Copyright (C) 2004-2012 Virtuemart Team. All rights reserved.</copyright>
  <license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
  <files>
    <file>dejavusans.php</file>
    <file>dejavusansb.php</file>
<file>dejavusansbi.php</file>
    <file>dejavusansi.php</file>
    <file>dejavusans.xml</file>
  </files>
</font>

You can get dejavusans files from official TCPDF github package https://github.com/tecnickcom/TCPDF


To convert a TTF font, you can try:
http://www.xml-convert.com/en/convert-tff-font-to-afm-pfa-fpdf-tcpdf
Note convert not work always