Accessing Pdf downloaded link in backend

Gravity Forms
April 20, 2023 04:39:20
cvla
Topics: 7
Messages: 23
1. Is it possible to get e2pdf generated download link after the gravity form submission in backend file like function.php?
So that we can insert the link in post meta
2. The download link generated after form submission a permalink to that specific pdf or will it expire after some time.
April 20, 2023 04:56:47
E2Pdf
Topics: 7
Messages: 3614
Support
Hi,

1. It's possible to get generated PDF download button/link, but it requires knowing the Gravity Forms Entry ID.

Example shortcodes:

$pdf = do_shortcode('[e2pdf-download id="1" dataset="' . $entry_id . '"]');

$pdf = do_shortcode('[e2pdf-download id="1" dataset="' . $entry_id . '" output="url"]');

$pdf = do_shortcode('[e2pdf-download id="1" dataset="' . $entry_id . '" output="url" esc_url_raw="true"]');

* where $entry_id - must be valid Gravity Forms Entry ID.

2. Created link is connected to the Gravity Forms Entry, so it will be valid until Gravity Forms Entry ID exists as E2Pdf generates PDFs in real-time. If Gravity Form Entry will be removed - the PDF download link will fail with a 404 error message.

We would really appreciate your feedback at WordPress.org!
May 10, 2023 22:47:33
cvla
Topics: 7
Messages: 23
It worked! Thankyou.
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.