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 to create a PDF document? ›

How to create PDF files:
  1. Open Acrobat and choose “Tools” > “Create PDF”.
  2. Select the file type you want to create a PDF from: single file, multiple files, scan, or other option.
  3. Click “Create” or “Next” depending on the file type.
  4. 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.

How do I create a new PDF from an existing PDF? ›

To extract PDF pages online, follow these simple steps:
  1. Use any browser to navigate to the Acrobat online services extract PDF pages tool.
  2. Upload the PDF from which you want to extract pages.
  3. Select the pages you want to extract to create a new PDF file.
  4. Press Extract.
  5. Download the new PDF file.

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.

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.

What program to make PDF? ›

Adobe Acrobat is the all-in-one PDF solution to help you create PDFs and stay productive — wherever, whenever. More than a PDF converter, Acrobat speeds workflows by making it easy to create, edit, share, and e-sign PDFs on the go across desktop, mobile, and web.

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.

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 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.

How do I split a PDF into separate pages? ›

How to split a PDF file:
  1. Open the PDF in Acrobat.
  2. Choose “Organize Pages” > “Split.”
  3. Choose how you want to split a single file or multiple files.
  4. Name and save: Click “Output Options” to decide where to save, what to name, and how to split your file.
  5. Split your PDF: Click “o*k” and then “Split” to finish.

How do you separate pages in a PDF? ›

Split PDF
  1. Upload the PDF file you want to split.
  2. Click on the scissor icon on the page after which you want to split the document.
  3. Click on "Split All" to save all PDF pages individually (optional).
  4. Use the "Reset" button to undo all marked splits (optional).
  5. Cicking on "Save" opens the saving options.

How do I edit an already made PDF? ›

Edit a PDF
  1. Go to File > Open.
  2. Find the PDF and open it (you might have to select Browse and find the PDF in a folder).
  3. Word tells you that it's going to make a copy of the PDF and convert its contents into a format that Word can display. ...
  4. After your edits, you save it as a Word doc or a PDF.

How do I export Gravity Forms? ›

Exporting forms from Gravity Forms

First, log into your WordPress website, then hover over “Forms” in the left-hand menu and click on “Import/Export”. Next, click on the “Export Forms” tab on the left, choose the form you want to export, and click on the “Download Export File” button.

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: Lakeisha Bayer VM

Last Updated:

Views: 5655

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Lakeisha Bayer VM

Birthday: 1997-10-17

Address: Suite 835 34136 Adrian Mountains, Floydton, UT 81036

Phone: +3571527672278

Job: Manufacturing Agent

Hobby: Skimboarding, Photography, Roller skating, Knife making, Paintball, Embroidery, Gunsmithing

Introduction: My name is Lakeisha Bayer VM, I am a brainy, kind, enchanting, healthy, lovely, clean, witty person who loves writing and wants to share my knowledge and understanding with you.