This method allows you to create a new PDF on a Gravity Form. If you are inserting data provided by the user ensure you validate and sanitize everything as we don't do it for you.
This method was introduced in Gravity PDF 4.0.
$form_id | integer
- The Gravity Form ID
$settings | array
- The PDF settings that should be added
string | boolean
- The new PDF ID on success, false on failure
This snippet shows the minimum settings that should be passed when adding a new PDF:
For the full list of settings available see the
form_settings_advanced arrays in the
This method is located in