Skip to main content
Version: 3

An Example of HTML in Custom PDF Templates

Basic HTML Example

The plugin ships with a number of PDF templates showing off the features of mPDF. These can be found in your PDF_EXTENDED_TEMPLATES directory.


To easily switch between custom PDF templates change the template query string parameter to the template name when viewing a PDF via your admin area.
Template Name: example-basic-html01.php Example URL:

The example-basic-html01.php template shows how most compatible HTML elements are rendered.

Download Example PDF

To see the full list of supported HTML tags and attributes view the mPDF documentation.