I am using mPDF and when exporting HTML content to pdf, all contents are showing perfectly. But glyphicons
are not showing. So I add font awesome style code in /application/third_party/mpdf/config_fonts.php
as follows
"fontawesome" => array(
'R' => "fontawesome-webfont.ttf"
),
And changed the code in view page
<i class="fa fa-phone"></i>
to
<span style="font-family: fontawesome;"></span>
After doing that I got fontawesome
inside pdf.
Is there any way to use
<i class="fa fa-phone"></i>
to generate icon inside pdf?