[e2pdf-attachment]

Shortcode is applied to generate PDF and attach it to the email as an attachment.

Basic Attributes #

  • Default shortcode can be used inside elements that support the "auto" dataset.
    • id - The ID of the E2pdf Template to use.
  • Shortcode to generate attachment PDF for the "static" PDF from the server.
    • pdf - Full path to static PDF.
    • dataset - The ID of the "dataset" to use for which it must be generated PDF. A dynamic dataset will be used if not set, depending on where the shortcode is placed.

      It's required to be set if shortcode placed at:
      • PHP functions
      • Elements that do not support "auto" dataset
    • dataset2 - The ID of the 2nd "dataset" to use for which it must be generated PDF.

      Can be used with:
      • Extension: Formidable Forms, Item: Merged Items
    • user_id - Overwrite defined User ID for [e2pdf-user] shortcode.
    • arg1, arg2, arg3, ... - Add custom values to be accessible inside PDF.

      • Usage inside E2Pdf Template:
    • apply - Required if called via custom call or via do_shortcode function.

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.