Version: 5
🔥 Gravity PDF v5 end of life was 2023-04-28 and this version is no longer supported. This legacy documentation is kept for reference only.
How to show a template preview image in the PDF Template Manager
To add the finishing touch to your custom template, we recommend adding a preview image, which gives users a nice visual of your template in the PDF Template Manager. This is an optional step.
To add support for your custom PDF template, save a 768x576 PNG to the images
folder in the PDF Working Directory with the same name as your PDF template. If no images
folder exists, create one.
For example, if the PDF template is called hello-world.php
, you'd save /images/hello-world.png
in the PDF Working Directory.
+-- /PDF_EXTENDED_TEMPLATES/ | +-- hello-world.php | +-- /images/ | +-- hello-world.png