gfpdf_pdf_config
Jump To Section
Description
This filter can be used to dynamically change or add to a form's PDF settings. For a permanent way to set the PDF settings you should use the GPDFAPI::update_pdf()
method instead.
You also have the option to use the gfpdf_pdf_config_$form_id
filter.
Parameters
$settings | array : The current PDF settings being processed
Usage
This snippet shows you how you can easily update all your forms from a legacy v3 template to a v4 template, without having to manually change the settings in the UI.
While the PDF master password setting has been removed from the UI, you can manually set this using the following snippet:
You can also specifically target a form:
Source Code
This filter is located in the Helper_Abstract_Options::get_pdf()
method of /src/helper/abstract/Helper_Abstract_Options.php
.