Skip to main content
Version: 4


Jump To Section


This filter is triggered for all Gravity PDF templates. You can add custom CSS or HTML code to control the look and feel of all PDF templates.


This snippet will force text on all PDFs to be display as the colour red:

add_action( 'gfpdf_core_template', function() {
body div, body table td, body table th {
color: red !important;
} );

Source Code

This filter is located in /src/view/html/PDF/core_template_styles.php.