Customize

    • Tutorial DK PDF WooCommerce Product

      We’re going to create a PDF for WooCommerce products using DK PDF. We’ll create a PDF that shows the following WooCommerce information: Title, Featured image, Description, Price and a Link to product. Steps 1. Copy plugin templates in Theme DK PDF implements a template system that allows overriding plugin templates in an upgrade safe way. […]
    • Tutorial DK PDF Advanced Custom Fields

      In this tutorial we are going to add Advanced Custom Fields to PDF using DK PDF. We’ll add Text, Image and Google Maps ACF fields to the PDF. For this tutorial I’ve created a child theme based on Twenty Seventeen and I uploaded it to GitHub. Steps 1. Add dkpdf-index.php template to your Theme Create a […]
    • FontAwesome icons support

      In order to see FontAwesome icons in the PDF you’ve to use a code, see FontAwesome Cheatsheet page. 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.
    • 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 and upload Montserrat-Regular.ttf file: Next thing to do is add the filters, […]
    • How to use DK PDF templates in your Theme

      The template files can be found within the /plugins/dk-pdf/templates/ directory. Override templates in Theme You can customize DK PDF template files in an upgrade safe way through overrides. Simply copy the desired templates into a directory within your theme named /dkpdf, keeping the same file structure. Example: Override templates in Child Theme DK PDF allows override templates […]