How to add custom fonts

Since version 1.9.6, DK PDF allows you to add custom fonts to the PDF easily using dkpdf_mpdf_font_dir and dkpdf_mpdf_font_data filters. In this example we are going to use Montserrat Google Font, so the first thing to do is download the font from here: In your WordPress installation, create a new folder fonts inside wp-content …

Read more

FontAwesome icons support

In order to see FontAwesome icons in the PDF you’ve to use a code, see FontAwesome Cheatsheet page.  View the code on Gist. Important: Since version 1.9.6, you must create a new font folder and upload a .ttf or .woff file of Fontawesome and add it in with filters, more info here.

Read more