[e2pdf-download]

The shortcode generates and outputs the PDF download link button.

Basic Attributes #

  • The default shortcode can be used inside elements that support the "auto" dataset.
    • id - The ID of the E2Pdf Template to use.
  • Shortcode to output the PDF download link for a "static" PDF from the server.
    • dataset - The ID of the "dataset" for which the PDF must be generated. If not set, a dynamic dataset is used, depending on where the shortcode is placed.

      It's required if the shortcode is placed in:
      • PHP functions
      • Elements that do not support the "auto" dataset


      With Access Check enabled, on a page the visitor gets the PDF only if it's their own entry. In form messages and emails, the dataset is added automatically. Read More ››
    • dataset2 - The ID of the 2nd "dataset" for which the PDF must be generated.

      Can be used with:
      • Extension: Formidable Forms, Item: Merged Items
    • user_id - Overwrite the defined User ID for the [e2pdf-user] shortcode.

      With Access Check enabled, on a page the visitor gets the PDF only for their own user. Read More ››
    • arg1, arg2, arg3, ... - Add custom values to be accessible inside the PDF.

      • Usage inside E2Pdf Template:
    • output - Output of the shortcode.

      • url - Outputs the PDF download link for the PDF.
      • url_raw - Outputs the raw PDF download link for the PDF.
      • url_encode - Outputs the encoded PDF download link for the PDF.

Style Attributes #

    • class - Additional classes to add to the generated PDF download link.
    • button_title - Overwrite the "Button Title" option setting inside E2Pdf Template.

PDF Settings Attributes #

    • name - Overwrite the "PDF Name" option setting inside E2Pdf Template.
    • password - Overwrite the "PDF Password" option setting inside E2Pdf Template.
    • format - Overwrite the "Format" option setting inside E2Pdf Template.

      • pdf
      • jpg
    • flatten - Overwrite the "Flatten" (read-only) option setting inside E2Pdf Template.

      • 0 - No flatten (editable fields)
      • 1 - Flatten (readonly fields)
      • 2 - Full flatten (PDF pages as images)
    • inline - Overwrite the "Inline" option setting inside E2Pdf Template.
    • auto - Overwrite the "Auto Download" option setting inside E2Pdf Template.

    • iframe_download - Force "Auto Download" via an iframe. Required when used with Ajax responses.
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.