This filter is used to modify the mPDF configuration settings which is passed to the mPDF object upon initialisation.
This filter was added in Gravity PDF 5.2.
$config | array
- The mPDF configuration settings
$form | array
- The current Gravity Forms array
$entry | array
- The raw Gravity Forms Entry array.
$settings | array
- The current PDF settings being processed
$Helper_PDF | object
- The initialised
Gravity PDF has some very sane defaults for mPDF, but you may want to utilise one of their more advanced features or change the default settings. If so, this is the filter to use.
Below is a snippet to disable SSL verification while requesting images (and other assets) for inclusion within the PDF. You might do this if your host is running an outdated version of cURL or the OpenSSL library and the images aren't displaying:
Another example is enabling the use of active form fields in PDFs. Keep in mind Gravity PDF does NOT support this feature, and our support team will not be able to assist you with any problems you encounter.
This filter is located in the
Helper_PDF::begin_pdf() method of