The Core and Universal have additional configuration options that can be modified with this filter. Usually, these should be modified at a higher level, but it can be necessary to dynamically change them at runtime.
Special meta options specific to these templates and accessed via
echo | boolean: Whether to output the generated PDF or return it. Default
exclude | boolean: Whether to exclude fields with a CSS value containing 'exclude'. Default
empty | boolean: Whether to show empty fields in the PDF. Default
conditional | boolean: Whether we should skip fields that don't pass conditional logic. Default
show_title | boolean: Whether the form title should be shown in the PDF. Default
section_content | boolean: Whether to include a Section field's content. Default
page_names | boolean: Whether Page fields should be included in the PDF. Default
html_field | boolean: Whether to show HTML fields in the PDF. Default
individual_products | boolean: Whether to group products at the end of the PDF. Default
enable_css_ready_classes | boolean: Whether to enable column support with special Gravity Form CSS classes. Default
Alone with the meta options, the standard PDF settings can be manipulated via
This filter was introduced in Gravity PDF 4.2.
$config | array
- The full configuration for Core and Universal PDF templates. Data is stored in the
$entry | array
- The raw Gravity Form Entry array.
$form | array
- The Gravity Forms array
The following will dynamically force empty fields to be displayed in Core or Universal templates:
This filter is located in the
View_PDF::generate_html_structure() method in