Fill in an existing PDF from a WordPress form

Filling in an existing PDF from a WordPress form

To fill in an existing PDF automatically with the answers from a WordPress form, the E2Pdf plugin makes the link: you import your PDF, you map each area to a form field, and the visitor gets their completed document, as a download or by email. It works with most form plugins, including the one in Elementor Pro.

In short

  • The need: a PDF to fill in (application file, order form, certificate) and an online form that completes it.
  • The tool: E2Pdf, a maintained WordPress plugin with a free version.
  • Compatible with Elementor Pro, Formidable Forms, Gravity Forms, WPForms, Contact Form 7 and many more.
  • The completed PDF can be downloaded, sent by email or saved on the server.
  • Mind the personal data: do not keep these PDFs longer than necessary.

The need

A client’s request led us to look for a solution: “We have a PDF with fields to fill in. We want our customers to complete a form on the website and, at the end, get this PDF filled in with their answers.”

No more printing, filling in by hand and scanning: the visitor enters their details once, and the document comes out ready.

A WordPress form sends its answers to E2Pdf, which fills in each area of the existing PDF, then downloaded or sent by email

What you need

  • your WordPress site;
  • your PDF;
  • a form plugin: Elementor Pro, Formidable Forms, Gravity Forms, WPForms, Contact Form 7, Fluent Forms, Forminator…
  • the E2Pdf plugin.

Step 1: prepare the PDF

There are two cases:

  • Your PDF already has fillable fields: perfect. Just check that each field has a clear name (“numero_dossier” rather than “Untitled5”), which will save you time at step 3.
  • Your PDF is a “flat” document: E2Pdf lets you place text areas directly on the document, inside WordPress. If you would rather prepare the PDF separately, an online editor such as PDFescape adds form fields to an existing PDF.

Step 2: create the form

Create a form with one field for each piece of information to carry over to the PDF. Take a minimal example: a single text field “File number”, which matches the “File number” area of the PDF. Give your fields the same names as in the PDF: mapping will be easier.

Step 3: map the form to the PDF

  1. In E2Pdf, create a new template and import your PDF.
  2. Choose the form plugin and the form to use.
  3. Map each area of the PDF to the form field that fills it.
  4. Save the template.

Step 4: deliver the PDF to the visitor

Choose how the completed document arrives:

  • As a download: a download link, with the shortcode [e2pdf-download] placed in the form’s confirmation message.
  • By email: the PDF attached to the email sent to the visitor, to you, or to both.
  • On the server: the PDF is saved in a folder of the site, for your records.

Test with a few submissions, checking accented characters, long fields and checkboxes.

Mind the personal data

An application PDF often holds personal data. If you save these files on the server, protect the folder from public access, and delete the files you no longer need. Also mention this processing in your privacy policy.

Need help?

Custom file name, sending to several recipients, signature, batch generation: if your need goes further, we can build it for you.

Discover our custom plugins or tell us about your need

Contents
Read next

More articles that may help you

Illustration au trait : un casque audio, une onde sonore, un stockage de fichiers et le symbole d’un flux RSS

Self-hosted podcast: moving a podcast to WordPress and Cloudflare R2

Read the article →
Illustration au trait : une patinoire vue de dessus, des sapins et un écran d’état avec deux pastilles

Ice rink and skating trail: a municipality’s custom WordPress plugin

Read the article →
WooCommerce e-invoicing: how to make your shop compliant

WooCommerce e-invoicing: how to bring your shop into compliance

Read the article →

A project, a question?

Free quote · Refundable deposit · Balance only if satisfied · No commitment