When provided the Gravity Forms entry ID and PDF ID, this method will correctly generate the PDF, save it to disk, trigger the
gpdf_post_save_pdf action and return the absolute path to the PDF.
This method was introduced in Gravity PDF 4.0.
$entry_id | integer
- The Gravity PDF Entry ID
$pdf_id | string
- The PDF internal identifier (found in the pid URL parameter when viewing individual PDF settings in the admin area)
string | WP_Error
- The full path to the generated PDF on success, or a WP_Error on failure
The following snippet shows you how to generate a PDF and test that it was successful:
This method is located in