All You Need To Know About Creating a PDF for Gravity Forms | Gravity PDF (2024)

All You Need To Know About Creating a PDF for Gravity Forms | Gravity PDF (1)

Creating a PDF for individual Gravity Forms is similar to creating Notifications. There are a lot of options available to you, but we've put the most common settings up front. The rest are hidden; split up between four sections:

  1. General - Common settings like label, filename, PDF template, and Notification attachments
  2. Appearance - Control the paper size and orientation as well as the font type, size and colour.
  3. Template - Template-specific settings: different templates can have different options
  4. Advanced - Advanced settings like document format and security options

To aid you in managing your PDF settings, an Add/Update button is included below every section, and you can collapse/hide sections by selecting the section title or associated toggle.

All You Need To Know About Creating a PDF for Gravity Forms | Gravity PDF (2)

The PDF settings for an individual form can be accessed by following these steps:

  1. Navigating to Forms -> Forms in your WordPress admin area.
  2. Locate the form you want to create a PDF for, then hover your mouse (or similar device) over that particular row. A list of actions will be revealed; click the Settings action.
  3. When the page loads, you'll see a navigation item called PDF in the left sidebar. Click that link.
  4. Finally, select the Add New button which is above-and-to-the-right of the table shown in the content area.

info

Only users with the gravityforms_edit_forms capability can manage the form PDF settings (prior to v6.4 this was the gravityforms_edit_settings capability). By default, this is users with the administrator role.

Required Fields

There are only two required fields when creating a PDF: Label and Filename. The rest of the settings will either use sane defaults, those configured in the Global Settings, or be disabled / empty. These settings can be found in the General section.

Label

  • The label is only used for internal administrative tasks. Its sole purpose is to provide a human-readable identifier for the particular PDF.
  • The label can help you distinguish between multiple PDFs in your WordPress admin area. It's best to choose something meaningful and easy to remember.

info

In previous versions of Gravity PDF this setting was know as the Name.

Filename

  • The filename is what the generated PDF will be called when saved. For example, My_Personal_Flyer.pdf.
  • Gravity Forms merge tags are supported in the filename. Any merge tags will be converted to the appropriate value when the PDF is saved. For example, {Name:3}_Personal_Flyer.pdf will become Gravity PDF_Personal_Flyer.pdf if Gravity PDF was entered into field 3 for the current entry.
  • If you use merge tags, either use a field marked required or include static text alongside the merge tag to prevent empty filenames.
  • The .pdf extension should be excluded from the filename field (but will be automatically removed if you add it).
  • While the following characters will be saved, they are automatically converted to an underscore when generating the PDF: / " * ? | :. This is to prevent problems saving the PDFs to disk on some operating systems.
  • If you have multiple PDFs configured on a single form, make sure the Filename is unique for each document, otherwise the PDF Notification attachments feature and gfpdf_post_save_pdf hook won't work correctly. From Gravity PDF v6.7, the Filename does not need to be unique.

There are a number of optional fields available which give you granular control over how the PDF functions. Each field belongs to one of four sections which are covered below.

General Section

All You Need To Know About Creating a PDF for Gravity Forms | Gravity PDF (3)

Below is the list of settings available in the General section, with a brief description about what each is for.

Template

  • Select the PDF template that should be used to generate the document. The global Default Template setting controls which template will be preselected.
  • Gravity PDF comes with four free templates for you to choose from. Upon changing your selection (using the drop down or selecting the Manage button to get a more graphical overview), the Template section will be updated (or removed if it has no options) to reflect the template-specific options.
  • Additional templates can be purchased from our template shop and then installed through the PDF Template Manager.
  • Developers with HTML, CSS and a little PHP knowledge can also create their own designs and layouts. Alternatively, the Gravity PDF team offers a Bespoke PDF service for those wanting us to build it for them – we can even populate existing PDF documents (not available in the free plugin).

Notifications

  • This setting allows you to automatically attach the PDF to the selected notification(s).
  • The PDF active state and Conditional Logic determine if the PDF will be attached to the notification. If one or both of these tests fail, no PDF will be attached. This setting does not affect the actual notification conditional logic (which determines if the notification should be sent).
  • If Background Processing is enabled, during the form submission when it's determined a PDF should be attached to a notification, Gravity PDF will handle the PDF generation and notification sending as a background task. The major benefit is the end-user doesn't have to wait for these tasks to complete before seeing the form's Confirmation page. Resending notifications from your admin area will also be processed as a background task.
  • If there is semi-sensitive user information included in the PDF, it's recommended you also enable PDF Security with a strong Password (more than 12 characters, with a mix of symbols, numbers and upper and lower case). Password-protected PDFs are encrypted using 128-bit AES.
  • If very sensitive user information is included in the PDF, it is recommended you do not enable this feature as email can be insecure. Instead use the [gravitypdf] shortcode over HTTPS so users have to login and pass PDF security checks before the document can be viewed or downloaded.

Conditional Logic

  • Conditional logic is a powerful feature of Gravity Forms allowing you to show or hide fields in your form based on a user's response. We've extended this behaviour to Gravity PDF, allowing you to enable or disable a PDF if a user responded a specific way.
  • If the conditional logic determines a PDF should be disabled, it will not be generated for that entry. The PDF will not be accessible through the [gravitypdf] shortcode or PDF merge tags, and will not be attached to notifications. Site administrators won't be able to access it from the admin area either.

info

If you enjoy learning through video, you can watch this 18-minute video with Gravity PDF's lead developer showing you how to set up multiple PDFs in a single Gravity Form, and use Conditional Logic to conditionally deliver different PDFs based on user input.

All You Need To Know About Creating a PDF for Gravity Forms | Gravity PDF (4)

The Appearance section contains fields that control the general look and feel of your PDF. You have control over the paper size and orientation, as well as the font, font size / colour and RTL support.

Paper Size

  • Use this option to set the PDF paper size.
  • This field defaults to the Default Paper Size option in the global settings.
  • Common paper sizes like A4, US Letter and Legal are available. The ISO-standard A, B and C paper sizes, as well as RA and SRA, can also be selected.
  • If none of the preloaded options suit, you can also select Custom Paper Size and control the width and height in millimetres or inches.

Custom Paper Size

  • This field is hidden until you select the Custom Paper Size option from the Paper Size field. It allows you to control the exact paper size of your document – in millimetres or inches.
  • When displayed, this field is required, and only positive numbers or floats are permitted in the width and height inputs.

Orientation

  • This allows you to change the paper orientation from portrait to landscape. A page displayed in portrait mode is taller than it is wide. Inversely, landscape pages are wider than they are tall.
  • The field defaults to Portrait.

Font

  • Select the font to be used in your PDF.
  • This field defaults to the Default Font option in the global settings.
  • If none of the pre-installed fonts suit your needs, additional fonts can be installed by selecting the Manage button, which will open the Font Installer.

Font Size

  • Control the font size used in the PDF.
  • The field defaults to the Default Font Size option in the global settings.

Font Colour

  • Control the font colour used in the PDF.
  • The field defaults to the Default Font Colour option in the global settings.

Reverse Text (RTL)

  • Control the text direction used in the PDF.
  • The field defaults to the Reverse Text (RTL) option in the global settings.

Template Section

All You Need To Know About Creating a PDF for Gravity Forms | Gravity PDF (5)

The template section contains the current template-specific settings. A template may support dozens of custom settings, or none at all (and the section will be hidden).

Below is a description of the Core template settings that all four free templates that ship with Gravity PDF include.

Show Form Title

  • Display the form name at the beginning of the PDF document.
  • This is disabled by default.

Show Page Names

  • When using Gravity Forms Page Break field you have the option to name each page using the Start Paging field. When this PDF option is enabled, thee page names will be displayed in your PDF.
  • This is disabled by default.

Show HTML Fields

  • Show your form's HTML fields in the PDF.
  • If your HTML has conditional logic, this will be honoured in the PDF. See Enable Conditional Logic to disable this feature.
  • This is disabled by default.

Show Section Break Description

  • The Section Break field allows you to enter a label and description. By default, a PDF will only show a section break's label. Enabling this option will also show the description.
  • This is disabled by default.

Enable Conditional Logic

  • When this option is enabled, the Gravity Forms field conditionals you set in your form will be adhered to in the PDF. This means if a field's conditional logic says it should be hidden, then it won't be included in the PDF.
  • This option is useful when you have Show Empty Fields enabled.
  • This is enabled by default.

Show Empty Fields

  • By default, any field not completed by the user won't be shown in the PDF document. When enabled, this option will display all fields, regardless of whether the user filled it out.
  • Conditional logic is honoured on all fields, including empty ones. See Enable Conditional Logic to disable this feature.
  • This is disabled by default.

Background Color

  • Set the background color for all pages in the PDF
  • By default, this is set to white (hex #FFFFFF)

Background Image

  • Set the background image to be used for all pages in the PDF
  • For the best results, create an image with the same dimensions as the Paper Size and then run through an image optimization tool before you upload.
  • This is disabled by default

Header

  • Add a header to your PDF document using the WordPress Classic Editor. You can use the media library to include a simple logo. Or add a more robust three-column table (try this code snippet).
  • Gravity Forms merge tags can be used in the header.
  • The special tags {PAGENO} – which displays the current page number – and {nbpg} – which displays the total number of pages in the document – can be used in the header.
  • Images will have their height restricted, so they don't take up too much of the page. Learn how to override this behaviour.

First Page Header

  • When enabled, you can add a different header to the first page of your PDF document.
  • Gravity Forms merge tags can be used in the header.
  • The special tags {PAGENO} – which displays the current page number – and {nbpg} – which displays the total number of pages in the document – can be used in the header.
  • Images will have their height restricted, so they don't take up too much of the page. Learn how to override this behaviour.

Footer

  • Add a footer to your PDF document using the WordPress Classic Editor. You can use the media library to include images. Or add a more robust three-column table that includes the page number and date (try this code snippet).
  • Gravity Forms merge tags can be used in the footer.
  • The special tags {PAGENO} – which displays the current page number – and {nbpg} – which displays the total number of pages in the document – can be used in the footer.
  • Images will have their height restricted, so they don't take up too much of the page. Learn how to override this behaviour.

First Page Footer

  • When enabled, you can add a different footer to the first page of your PDF document.
  • Gravity Forms merge tags can be used in the footer.
  • The special tags {PAGENO} – which displays the current page number – and {nbpg} – which displays the total number of pages in the document – can be used in the footer.
  • Images will have their height restricted, so they don't take up too much of the page. Learn how to override this behaviour.

All You Need To Know About Creating a PDF for Gravity Forms | Gravity PDF (6)

The Advanced section allows you to control the PDF security (which includes password protection). You can also change the image DPI and the PDF format.

Format

  • This allows you to change the PDF to one of the ISO-standard PDF/A-1b or PDF/X-1a formats.
  • The PDF/A-1b standard is designed for long-term archiving and is 100% self-contained. All the information necessary for displaying the document is embedded in the file.
  • The PDF/X-1a standard is designed to facilitate printing. Like the PDF/A-1b standard, the document is 100% self-contained but has the added restriction that all images need to be CMYK or spot colours. The software will try automatically convert any images to CMYK.
  • Both the PDF/A-1b and PDF/X-1a standards do not allow transparency, which means you cannot use watermarks or PNG images with alpha channel transparency. Additionally, the PDF Security option is automatically disabled – which includes the Password and Privileges fields.

Enable PDF Security

  • When the Format is set to Standard, you have the option to enable PDF security. This allows you to set a password to access the PDF or control the end-user document privileges.

Password

  • When PDF Security is enabled, you have the option to password-protect your PDF documents.
  • Merge tag usage is allowed in this field.
  • Leave this field blank if you don't want to set a password (useful if you only want to control the end-user Privileges)

note

In the PDF world, this password is known as the Unlock Password. It should not to be confused with the Owner/Permissions Password, which is randomly generated for each PDF. Add this filter to your site to manually control the Owner/Permissions Password.

Privileges

  • You can restrict what the end user does with the PDF by removing privileges. The following privileges are available:

    1. Annotate: Add or modify text annotations.
    2. Assemble: Allow users to insert, delete or rotate pages.
    3. Copy: Allow users to copy and pasting content from the document.
    4. Extract: Allow users to split or extract pages from the document.
    5. Fill Forms: Allow users to fill in any active form field elements.
    6. Printing - High Resolution: Allow high quality printing and PDF re-distilling.
    7. Printing - Low Resolution: Low-resolution printing will generate a bitmapped image of the document that is suitable for personal use. High-quality reproduction and re-distilling is disabled. If you don't want the user to print at all remove both Printing privileges.
    8. Modify: If this privilege is removed, document modifications are disabled. However, copying, extracting content and printing are allowed.

caution

Do not rely on privileges to restrict what a user can do with the PDF, as they are easily bypassed with simple tools. This is a limitation of the PDF specification and not Gravity PDF. Use this feature to convey intention and, optionally, combine with an appropriate license to inform the user what they legally can and cannot do with the document.

Image DPI

  • Adjust the image DPI (Dots Per Inch). By default this is set to 96. If professionally printing you should set this to 300 and change the Format to PDF/X-1a.

Enable Public Access

  • Enabling public access to the PDF will disable all security protocols and give anonymous users access to the PDF. This means anyone worldwide can view the PDF document for all your form's entries.
  • For most users, the standard security measures will be adequate, and public access should remain disabled.
  • A good middleground between the default security and public access is Signed PDF URLs, as it allows anyone with access to the secure signed PDF URL to view the document.

Restrict Owner

  • This option is used to prevent the original entry owner (the person who submitted the form) from viewing the generated PDF.
  • This option defaults to the global Default Owner Restrictions value, but you have the option to override that behaviour on a per-PDF basis.
  • Logged-in users who have one of the capabilities enabled in the User Restriction setting will still be able to access the PDF
  • Signed PDF URLs will ignore this setting.

info

The Always Save PDF setting has been removed from the UI. As the sole reason for this setting was to allow developers to use the gfpdf_post_save_pdf action, we now automatically enable this functionality when the action is hooked into.

All You Need To Know About Creating a PDF for Gravity Forms | Gravity PDF (2024)

FAQs

How do I create a PDF from Gravity Forms? ›

After installing Gravity PDF, navigate to your Form and click on Form Settings. Here you'll see a new tab called “PDF” which allows you to configure new PDF exports. There is a range of options for customizing the look and feel of your PDF files.

How do I create a fillable PDF? ›

It's easy to create fillable PDF form in Adobe Acrobat.
  1. Open Acrobat.
  2. Select a file or scan a document.
  3. Add new form fields.
  4. To change existing text boxes or images, click Edit in the toolbar.
  5. Save your fillable PDF.

How to create a PDF document? ›

Open Acrobat and choose “Tools” > “Create PDF”. Select the file type you want to create a PDF from: single file, multiple files, scan, or other option. Click “Create” or “Next” depending on the file type. Follow the prompts to convert to PDF and save to your desired location.

Where are Gravity PDF templates stored? ›

When Gravity PDF is installed, it automatically creates a folder called PDF_EXTENDED_TEMPLATES in your WordPress upload directory. This folder is used to store temporary files, fonts and custom PDF templates.

Is Gravity Forms worth it? ›

I personally use and recommend it to others in the freelancing field of automation. Gravity form is the best application, it is very easy to use, provides an easy integration within 3rd party, and advanced features are there within Gravity Form, in general, It is the best application to design and create forms.

How do you get started with Gravity Forms? ›

Create and Embed your First Form

To create your first form, open the Forms menu and select New Form. To add a form field, simply click or drag the field you would like to add to your form. The Gravity Forms toolbox consists of an accordion interface that allows you to select which field types you would like to add.

What is the easiest program to make a fillable PDF? ›

Acrobat's software is typically the go-to for creating, editing, and reading PDF documents. However, there is an alternative when it comes to making a fillable PDF. Jotform's PDF Editor was created to meet the data-collection and organizational needs of every kind of user.

What is the easiest way to create a fillable form? ›

A step-by-step guide to creating a basic fillable form in Microsoft Word
  1. Opening Microsoft Word and starting a new document. ...
  2. Adding form fields (text boxes, checkboxes, radio buttons). ...
  3. Setting properties for each form field (label, options, default values). ...
  4. Testing the form within Word. ...
  5. Save and distribute your form.
Sep 20, 2023

What is the best program to create a PDF form? ›

Adobe Acrobat allows users to turn their old forms and paper documents into digital, fillable PDFs with ease. Whether it is a simple Word or Excel form, this program will let you make it smarter with digital fields. It automatically recognizes static form fields and makes them fillable.

Can I create a PDF for free? ›

The best online PDF maker

Use Canva's free PDF maker to create, translate(opens in a new tab or window), and add a professional polish to your presentation. Supplement your data with images, graphics, and other kinds of content presented in an appealing layout.

Where can I create PDF for free? ›

PDF24 makes it as easy and fast as possible to create PDF files. You don't have to install or adjust anything, you can start creating PDF files immediately.

Where does Gravity Forms store files? ›

ALL of the data received via your form submissions is stored in tables in your own WordPress database on your own hosting provider. Please see our statement here https://docs.gravityforms.com/wordpress-gravity-forms-and-gdpr-compliance/ for additional related information.

How do I upload files to gravity form? ›

You can find the “File Upload” field in the “Advanced” panel in the Gravity Forms editor. To add this field to your form, simply drag and drop it onto the canvas. After adding the field to your form, you'll need to configure a few settings. First is the “Allowed file extensions” setting.

Where does Gravity Forms store attachments? ›

By default, file uploads go to the WordPress wp-content/uploads folder in a folder that Gravity Forms creates. Files created using the Post Image field are also added to your Media Library just like any file you upload when creating a post. Files are not attached to notification emails.

How do I export Gravity Forms? ›

To export a Gravity Form (i.e., the form itself, not the entries), go to Forms > Import/Export and select the Export Forms tab. Select the form(s) that you wish to export, then click the Download Export File button. The download file will be in the JSON format.

How do I export Gravity Form results? ›

All you need to do is log into your WordPress website, hover over “Forms” in the left-hand menu, and click on “Import/Export”. Make sure you're on the “Export Entries” tab and then select your form from the dropdown menu. After that, choose the fields you want to export.

How do I convert a 3D object to PDF? ›

Add a 3D model to a page
  1. Choose Tools > Rich Media > Add 3D.
  2. Drag a rectangle on the page to define the canvas area for the 3D file.
  3. In the Insert 3D dialog box, click Browse to select the 3D file, and then click Open. Click OK.
Jun 5, 2023

How do I save a G slide as a PDF? ›

To convert Google slides to PDF,
  1. Go to Google Slides and open the presentation you want to save as a PDF file.
  2. Click the “File” tab on the top-left corner of your screen.
  3. Hover over the "Download" option and choose "PDF Document (. pdf)" from the dropdown menu.
Aug 3, 2023

Top Articles
Latest Posts
Article information

Author: Geoffrey Lueilwitz

Last Updated:

Views: 6845

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.