🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms PDF & E-Signature Add-on Setup Guide

Updated 9 min read Gravity Forms PDF & Documents
On this page
  1. Video walkthrough
  2. Step 1: Activate Your License
  3. Step 2: Configure Document Settings
  4. Step 3: Connect DocuSign or Dropbox Sign
  5. DocuSign (JWT grant)
  6. Dropbox Sign
  7. Step 4: Create a PDF Template
  8. Page setup and delivery
  9. Field display options
  10. Step 5: Send the PDF for Signature
  11. Step 6: Manage Documents on Each Entry
  12. Security, Privacy and Data Storage
  13. Developer Hooks
  14. Troubleshooting & FAQ
  15. Resource Hub

Video walkthrough

Create PDF Certificates & Documents from Gravity Forms Entries
Video walkthrough: design a PDF certificate template and send a secure download link from Gravity Forms. Watch on YouTube

The Gravity Forms PDF & E-Signature Premium Add-on generates branded PDF documents from Gravity Forms entries, attaches them to notifications or shares them through expiring secure links, and sends them for legally binding signatures with DocuSign or Dropbox Sign. Signature status updates are verified and logged on the entry, and the signed PDF is stored with the entry automatically.

This guide covers activation, document storage settings, connecting a signing service, designing a PDF template, sending it for signature and managing documents on each entry.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher
  • PHP: Version 7.4 or higher with the mbstring and dom extensions (GD is recommended for PNG/JPEG images)
  • Gravity Forms: Version 2.9 or higher
  • E-signature (optional): A DocuSign account with an integration key, or a Dropbox Sign account with an API key
  • Add-on: Installed and activated with an active GravityExtra license key

Step 1: Activate Your License

Upload and activate the plugin, then go to Forms → Settings → PDF & E-Signature. Enter your GravityExtra license key and click Activate License.

GravityExtra License panel on the PDF and E-Signature settings page
Activate your license under Forms → Settings → PDF & E-Signature.

Step 2: Configure Document Settings

The Documents panel controls how long emailed download links stay valid and when stored documents are removed.

Documents settings with share link lifetime and data retention options
Share link lifetime and data retention options.
Setting Description
Share link lifetime (days) How long download links sent by email stay valid (1–365 days). Links are signed and cannot be altered.
Delete stored documents when an entry is permanently deleted Removes the entry’s PDFs and signed documents together with the entry.
Delete all stored documents when the plugin is uninstalled Removes the whole document folder on uninstall.

Step 3: Connect DocuSign or Dropbox Sign

E-signature is optional. Skip this step if you only need PDFs. You can connect one or both services.

DocuSign (JWT grant)

  1. As the settings page describes, create an integration key in DocuSign Admin → Apps and Keys, add an RSA keypair, and add your settings page address as a redirect URI on the integration key.
  2. Choose the Environment (Developer (demo) or Production) and enter the Integration key and the User ID (GUID) of the DocuSign user who sends envelopes.
  3. Paste the whole RSA private key, including the BEGIN and END lines. Leave API account ID empty to use the user’s default account.
  4. Create a key in DocuSign Admin → Connect → Connect Keys and paste it into Connect HMAC key. Status updates are only accepted when they carry a valid signature.
  5. Save, then click Grant consent in DocuSign once while signed in as the DocuSign user above.
DocuSign settings with environment, integration key, user ID, encrypted private key, Connect HMAC key and status update URL
DocuSign connection. Secret values are stored encrypted and never shown again.

The Status update URL (/wp-json/gepdf/v1/docusign) is sent automatically with every envelope, so you do not need to configure it in DocuSign. DocuSign only accepts HTTPS addresses, so status updates require your site to run on HTTPS.

Dropbox Sign

Paste the API key found in Dropbox Sign → Settings → API, then set the Status update URL (/wp-json/gepdf/v1/dropboxsign) as the account callback URL on the same Dropbox Sign page. Tick Send requests in test mode while you are testing; test requests are not legally binding.

Dropbox Sign settings with encrypted API key, test mode option and callback URL
Dropbox Sign connection with test mode enabled.

Step 4: Create a PDF Template

Open a form and go to Settings → PDF Templates, then click Add New. Each template lists its secure link merge tag, such as {gepdf_link:5}.

PDF Templates list showing a template, paper size and link merge tag
PDF templates for a form, with the merge tag for each template’s download link.

Design the Document body in the WordPress editor using any Gravity Forms merge tag, including {all_fields}. Images from your Media Library are supported.

PDF template editor with document body, merge tags and template shortcuts help
Template body with merge tags. Use Preview with the latest entry to check the saved template.
Template code What it does
[gepdf_if field="6" is="Yes"]…[/gepdf_if] Shows a section only when the field matches. Other operators: isnot, contains, greater, less, empty="yes" or empty="no".
[gepdf_signature signer="1"] Marks where signer 1 (up to signer 4) signs.
[gepdf_date_signed signer="1"] Marks where the signing date for that signer appears.
{page_number} / {page_count} Page numbers in the header and footer.

Page setup and delivery

Choose the paper size (A4, US Letter, US Legal, A3 or A5), orientation, font (DejaVu Sans, Serif or Sans Mono, all with accented and non-Latin characters) and base font size, and add an optional header, footer and custom CSS.

Page setup settings with paper size, orientation, font, header, footer and custom CSS
Page setup: paper, font, a repeating header and footer, and custom CSS.

Under Delivery, set the file name (merge tags supported; “.pdf” is added automatically), keep Generate and store the PDF when the form is submitted enabled, tick the notifications that should carry the PDF as an attachment, and optionally add conditional logic so the PDF is only generated when conditions are met.

Delivery settings with file name, generation option, notification attachments and conditional logic
Delivery options: file name pattern, automatic generation and notification attachments.

Here is the first page of the PDF generated from the template above for a real submission. The pet-friendly section appears because the client answered “Yes”:

First page of a generated service agreement PDF with client details, conditional section and signature lines
A generated agreement: header, merge tag values, a conditional section and signature placeholders.

Field display options

Since version 1.2.0 every template has a Field display section that controls how the list of submitted fields looks. Add the {gepdf_fields} merge tag to the document body (it is in the merge tag list as PDF field list), or tick Apply these options to {all_fields} in this template too to use the options for {all_fields}. Templates created before 1.2.0 look exactly the same until you change an option.

Option What it does Merge tag modifier
Use for {all_fields} Off: {all_fields} keeps the standard Gravity Forms layout. On: {all_fields} in this template uses the options below. all_fields switch
Empty fields Also list fields the visitor left empty. empty
Section headings On by default. Untick to leave section titles out. A section with no answers is skipped unless Empty fields is on. sections / nosections
Section descriptions Print the description under each section title. sectiondesc
Page names Print the page names of a multi-page form as headings. pages
Field descriptions Print each field’s description under its label. descriptions
HTML field content Include the content of HTML fields (merge tags inside are filled in). html
Fields hidden by conditional logic By default fields hidden by conditional logic are left out. Tick to print them anyway. hidden
Entry notes Add the entry notes after the fields. notes
Field labels Field label, admin label (falls back to the label) or no labels. labels=label|admin|none, admin, nolabels
Layout Label beside value, label above value, or two columns. layout=table|stacked|columns
Choice fields Selected answers only, or every choice with a ticked (☑) or empty (☐) box. Checkboxes, radio buttons, drop downs and multi selects. choices=all / allchoices
Choice text Print the choice values instead of the choice labels. values
Pricing fields Order summary table (products, options, quantity, unit price, shipping, total), as normal fields, or hidden. products=table|fields|hide, noproducts
Leave out these fields Tick any field to leave it out. You can also add the CSS class gepdf-exclude to a field in the form editor. exclude=4|7
— Only these fields, in this order. include=2|1|5

Modifiers override the template settings for one merge tag. Separate them with commas, and field IDs with |. Add no in front of an on/off modifier to switch it off, for example nonotes. Examples:

  • {gepdf_fields:empty,layout=columns,exclude=4|7} – every field including empty ones, two columns, without fields 4 and 7.
  • {gepdf_fields:include=9|7|8,nolabels,noproducts} – a short kitchen ticket with three answers in that order.
  • {gepdf_fields:allchoices,descriptions} – a checklist-style document.

{gepdf_fields} also works in notification e-mails (HTML and plain text), with the same modifiers.

Step 5: Send the PDF for Signature

Go to the form’s Settings → E-Signature Requests and add a request. Pick the Signing service, the Document (the PDF template that is generated and sent) and the email subject and message.

E-signature request settings with name, signing service, document and email
An e-signature request that sends the Service Agreement through DocuSign.

Add up to four signers. Use merge tags to take names and emails from the entry or type a fixed recipient. Signers with the same order sign in parallel; lower numbers sign first.

Signer settings with the client from merge tags and a fixed manager signer in order 2
The client signs first, then the operations manager.

Under After signing, tick Attach the signed PDF to “Document signed” notifications. Then create a notification with the event Document signed (E-Signature) to email the completed document. You can also share it with {gepdf_signed_link:ID}, where ID is the e-signature request ID.

After signing settings with attach signed PDF option and conditional logic
The signed document is always stored with the entry.

Step 6: Manage Documents on Each Entry

The PDF & E-Signature panel on the entry detail page lets you view, download or regenerate the PDF, copy a share link, and follow the signature status: Sent, Viewed, Partially signed, Signed, Declined, Canceled or Not sent. Each status change is also added as an entry note. The entry list gains PDF and Signature status columns.

Entry PDF and E-Signature panel showing the generated document and a signed DocuSign request
A generated agreement and its completed DocuSign request.
Entry list with PDF and Signature status columns
PDF and Signature status columns in the entry list.

Security, Privacy and Data Storage

  • Protected storage: documents are stored under wp-content/uploads/gravityextra-pdf/ in a folder with a random name, with random file names and .htaccess (Apache) and web.config (IIS) protection.
  • Who can download: logged-in team members who can view Gravity Forms entries, or anyone holding a signed link that has not expired.
  • Encrypted secrets: the DocuSign private key, Connect HMAC key and Dropbox Sign API key are stored encrypted and never printed back on the settings page.
  • Verified status updates: DocuSign updates must carry a valid HMAC signature and Dropbox Sign events a valid event hash. Final states (signed, declined, canceled) are never downgraded by late or repeated events.
  • No remote content: images and styles from other websites are never downloaded into PDFs; use images from your Media Library.
  • Signer data: signer names, emails and the document are sent to the signing service you choose. Mention this in your privacy policy.

nginx servers

nginx ignores .htaccess files. Add a deny rule for the document folder, or move storage outside the web root with the gepdf_storage_root filter.

nginx.conf
NGINX
# Block direct access to stored PDF documents
location ^~ /wp-content/uploads/gravityextra-pdf/ {
    deny all;
}

Developer Hooks

Hook Type and arguments Purpose
gepdf_document_html Filter: $html, $meta, $form, $entry Change the final document HTML before rendering.
gepdf_storage_root Filter: $root Store documents in another folder, for example outside the web root.
gepdf_docusign_callback_url Filter: $callback Change the DocuSign status update URL (must be HTTPS).
gepdf_document_signed Action: $entry, $feed_id, $record Runs after a document has been signed and stored.
gepdf_field_display_html Filter: $html, $form, $entry, $options Change the field list HTML of {gepdf_fields} / {all_fields} (1.2.0).
gepdf_field_display_value Filter: $html, $field, $entry, $options Change how one field value is printed in the field list (1.2.0).
gepdf_field_display_notes Filter: $notes, $entry Choose which entry notes the Entry notes option prints (1.2.0).
functions.php
PHP
// Keep generated documents outside the public web root.
add_filter( 'gepdf_storage_root', function( $root ) {
    return dirname( ABSPATH ) . '/private/gravityextra-pdf';
} );

// Log every completed signature request.
add_action( 'gepdf_document_signed', function( $entry, $feed_id, $record ) {
    $message = sprintf( 'Entry #%d signed via %s', $entry[ 'id' ], $record[ 'provider' ] );
    error_log( $message );
}, 10, 3 );

Troubleshooting & FAQ

The DocuSign status stays on “Sent”.

Status updates are only requested when your site runs on HTTPS, and they are only accepted with a valid Connect HMAC key. Check that the site URL starts with https:// and that the HMAC key matches the one in DocuSign Admin → Connect → Connect Keys.

DocuSign says consent is required.

Click Grant consent in DocuSign in the add-on settings while signed in as the DocuSign user, and make sure the settings page address is a redirect URI on your integration key.

An entry note says the document was not sent for signature.

The note explains why, for example no valid signer email was found in the entry, no signing service is selected, or the PDF could not be generated.

My logo or image is missing from the PDF.

Only images from this site’s uploads folder (Media Library) and inline data images are used. Images and styles from other websites are never downloaded.

Accented or non-Latin characters show as boxes.

Use one of the built-in DejaVu fonts. Common font names such as Arial, Helvetica, Times and Georgia are mapped to them automatically.

Preview shows “Submit the form at least once”.

Preview uses the latest entry of the form. Submit a test entry, then preview again.

Resource Hub

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr