Build WPForms from PDF forms. Get PDFs filled automatically and attached to email messages and/or website responses on form submissions.
This plugin allows WPForms users to add PDF attachments filled with form submission data to notifications and confirmations of WPForms.
If the PDF attachment has a PDF form, the plugin allows users to add fields to the WPForms form and/or link them to fields in the PDF. The plugin also allows the attached PDF files to be embedded with images supplied by the WPForms fields. The filled PDF files can be saved on the web server.
When your website visitor submits your WPForms form, the form in the PDF file is filled with the form information, images are embedded and the resulting PDF file is attached to the WPForms notification. The resulting PDF file can also be downloaded by your website visitors if this option is enabled in your form’s options.
What makes this plugin special is its approach to preparing PDF files. It is not generating PDF documents from scratch. It modifies the original PDF document that was prepared using third party software and supplied to the plugin. This allows users the freedom to design exactly what they need and use their pre-existing documents.
An external web API (https://pdf.ninja) is used for filling PDF forms (free usage has limitations).
Requirements:
* PHP 5.5 or newer
* WordPress 5.4 or newer
* WPForms 1.6.9 or newer
* Chrome 63, Firefox 58 (or equivalent) or newer
Known incompatible plugins:
* Imagify (strips forms from PDF files)
* ShortPixel Image Optimizer (strips forms from PDF files)
Special thanks to the following sponsors of this plugin:
* BrowserStack
/wp-content/plugins/
directory, or install the plugin through the WordPress plugins screen directly.PDF Forms section is available to access PDF attachments interface
PDF attachment interface that allows users to attach PDF files and set attachment options
Field Mapper Tool that allows users to generate and map fields, smart tags and values
Image Embedding Tool that allows users to embed images into PDFs
Filled PDF file
No. This plugin adds features to the WPForms interface in the WordPress Admin Panel only.
No. The plugin uses core WordPress and WPForms features only. No special software or PHP extensions are needed. Working with PDF files is done through Pdf.Ninja API. It is recommended to have a working SSL/TLS certificate validation with cURL.
The field mapper tool allows you to map fields individually and, when needed, generate new WPForms fields on the fly. WPForms fields can be mapped to multiple PDF fields. Mappings can be associated with a specific PDF attachment or all PDF attachments. Field value mappings can also be created, allowing filled PDF fields to be filled with data that differs from the originally filled values.
Make sure the mapping exists in the list of mappings and the field names match.
If you attached an updated PDF file and your mappings were associated with the old attachment ID then those mappings will be deleted and you will need to recreate them.
Sometimes PDF form fields have validation scripts which prevent value with an incorrect format to be filled in. Date PDF fields must be formatted with a smart tag.
Try using the Enable Media Replace plugin to replace the PDF file in-place in the Media Library.
Make sure your PDF checkbox/radio field’s exported value matches the value of the WPForms form’s checkbox value. Usually, it is “On” or “Yes”. If you need to display a different value in the WPForms form, you will need to create a value mapping.
WPForms allows you to have multiselect checkboxes, however, PDFs can’t have multiple values with checkbox fields. You either need to switch to using a listbox in your PDF or rename your checkboxes such that each has a unique name and then map them appropriately.
Some PDF viewers don’t render checkboxes correctly in some PDF files. You may be able to solve this issue by recreating the PDF in a different PDF editor. If you are still using Pdf.Ninja API v1, switching to v2 may resolve your issue.
Please see the Pdf.Ninja API website.
Release date: May 30, 2024
Added multiple choice option concatenation when mapped to a text field
Release date: January 16, 2024
Removed needless file name prefix in confirmation downloads
Release date: November 9, 2023
Fixed issues in page snapshot code
Release date: August 9, 2023
Fixed a notification attachment failure due to asynchronous notifications
Release date: June 22, 2023
Fixed a bug: form settings sometimes are not saved
Release date: May 17, 2023
Added a workaround for GLOB_BRACE flag not being available on some non GNU systems
Release date: May 6, 2023
Bug fixes and improvements
Release date: December 2, 2022
Ensure support for WPForms 1.8.0
Release date: December 2, 2022
Some fixes were applied that affect the filling process logic. Please check your forms after the update to make sure everything is working as expected if you think they might be affected!
Fixed an issue with PDF fields not being cleared with empty CF7 field values (affects prefilled fields in the original PDF file)
Release date: September 9, 2022
Initial release