Skip to content Skip to sidebar Skip to footer

Indian Currency Symbol Not Show When Convert Html2pdf In Php

In my HTML report i used Indian new currency(₹) symbol. When I convert HTML report to PDF using html2pdf extension, all currency symbol change to question mark symbol. How can I

Solution 1:

<?php
include("../mpdf.php");
$mpdf=new mPDF('');
$mpdf->WriteHTML('<div style="font-family:dejavusanscondensed">&#x20b9;</div>');
$mpdf->Output();
exit;
?>

for reference use the link below

How to print Indian Rupee(₹) symbol in pdf using html?


Post a Comment for "Indian Currency Symbol Not Show When Convert Html2pdf In Php"