Build Contact Form 7 forms from PDF forms. Get PDFs auto-filled and attached to email messages and/or website responses on form submission.
This plugin allows Contact Form 7 users to add PDF attachments filled with form submission data to email messages and responses of Contact Form 7.
If the PDF attachment has a PDF form, the plugin allows users to add fields to the Contact Form 7 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 Contact Form 7 form fields. The filled PDF files can be saved on the web server.
When your website visitor submits your Contact Form 7 form, the form in the PDF file is filled with CF7 form data, images are embedded and the resulting PDF file is attached to the Contact Form 7 email message. The resulting PDF file can also be downloaded by your website visitors if this option is enabled in your form’s options. It is possible to save the resulting PDF file to your server’s wp-content/uploads directory.
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). The “Enterprise Extension” plugin is available for purchase that enables the processing all PDF operations locally on your web server and disables the use of the external web API.
Please see the tutorial video and the documentation for detailed information.
Requirements:
* PHP 5.2 or newer
* WordPress 4.8 or newer
* Contact Form 7 5.0 or newer
* IE 11 (or equivalent) or newer
Known problems:
* Some third party plugins may break the functionality of this plugin (see a list below). Try troubleshooting the problem by disabling likely plugins that may cause issues, such as plugins that modify WordPress or Contact Form 7 in radical ways.
* Some image optimization plugins optimize PDFs and strip PDF forms from PDF files. This may cause your existing forms to break at a random point in the future (when PDF file cache times out at the API).
* If you are still using the old version of the API (v1) or the old version of Enterprise Extension (v1), please note that resulting PDFs may not render properly in some PDF readers and with some UTF-8 (non-latin) characters, checkboxes and radio buttons.
Known incompatible plugins:
* Post SMTP (breaks PDF attachment to email messages)
* Imagify (strips forms from PDF files)
* ShortPixel Image Optimizer (strips forms from PDF files)
* Live Preview for Contact Form 7
* Open external links in a new window
* WordPress Multilingual Plugin
* Contact Form 7 Skins
Special thanks to the following sponsors of this plugin:
* BrowserStack
* Momentum3
* G-FITTINGS GmbH
/wp-content/plugins/
directory, or install the plugin through the WordPress plugins screen directly.Please check your server’s email configuration. Please check to make sure your SPAM mitigation technique is not causing the problem (reCaptcha/Akismet/etc).
No. This plugin adds features to the Contact Form 7 interface in the WordPress Admin Panel only.
No. The plugin uses core WordPress and CF7 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. Enterprise Extension is available if your business requirements prevent the use of a third party API.
The field mapper tool allows you to map fields individually and, when needed, generate new CF7 fields on the fly. CF7 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 the format mail-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 CF7 form’s checkbox tag. Usually, it is “On” or “Yes”. If you need to display a different value in the CF7 form, you will need to create a value mapping or use pipes.
CF7 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 and the Enterprise Extension plugin page.
Please see the Enterprise Extension plugin page.
Release date: March 5, 2024
Ensured support for CF7 v5.9
Release date: January 15, 2024
Fixed possible issues with API communication caused by non-alphanumeric characters in request boundary
Release date: November 8, 2023
Fixed a bug with a default file name when there are multiple PDF attachments
Release date: November 3, 2023
Auto-resize mail-tags textarea
Release date: August 15, 2023
Ensured support for WP v6.3
Release date: July 10, 2023
Added a workaround support for Conditional Fields plugin’s groups
Release date: May 17, 2023
Added a workaround for GLOB_BRACE flag not being available on some non GNU systems
Release date: May 5, 2023
Minor fixes and improvements
Release date: December 14, 2022
Ensured support for CF7 v5.7
Release date: November 29, 2022
Fixed bugs with frontend CF7 response
Release date: November 23, 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: October 27, 2022
Fixed issues on CF7 Integration page
Release date: September 20, 2022
Add duplicate CF7 value mappings to multiple unique PDF values support to multiselect feature
Release date: July 25, 2022
Assuming support for all CF7 v5.6.* revisions
Release date: July 3, 2022
Added automatic value mapping
Release date: May 24, 2022
Ensured support for WP v6.0
Release date: February 23, 2022
Ensured support for CF7 v5.5.6
Release date: February 18, 2022
Fixed value mapping feature’s handling of ‘free_text’ checkbox and radio option
Release date: February 14, 2022
Ensured support for CF7 v5.5.5
Release date: February 2, 2022
Fixed a bug with value mapping feature
Release date: February 1, 2022
Added multi-select field support
Release date: January 25, 2022
Ensured support for CF7 v5.5.4
Release date: December 5, 2021
Ensured support up to CF7 v5.5.3
Release date: October 29, 2021
Ensured support up to CF7 v5.5.2
Release date: October 14, 2021
Ensured support up to CF7 v5.5.1
Release date: September 21, 2021
Crash fix
Release date: September 18, 2021
Added a user-provided email address field for requesting a new key from the API
Release date: August 11, 2021
Fixed a bug that caused cron schedules issues with other plugins
Release date: August 2, 2021
Switched the Pdf.Ninja API version setting default from v1 to v2
Release date: July 14, 2021
Renamed plugin
Release date: July 3, 2021
Added the default tag option to radio/select/checkbox tag generator
Release date: June 1, 2021
Added API version configuration option
Release date: May 5, 2021
Certified CF7 v5.4.1 as a supported version
Release date: April 12, 2021
Fixed and improved cron code
Release date: April 4, 2021
Fixed a bug that broke CF7 JS response
Release date: April 2, 2021
Fixed an issue with the download link feature and the latest version of CF7
Release date: April 2, 2021
Fixed and improved download link feature support in CF7 v5.4
Release date: March 10, 2021
Fixed old PHP version support
Release date: March 7, 2021
Added CF7 v5.4 compatibility: WPCF7_Submission::add_uploaded_file()
Release date: March 1, 2021
Fixed an accidental bug that was causing PDFs not to be attached to email messages
Release date: March 1, 2021
CF7 v5.4 is still unsupported, however, error mitigation measures were added
Release date: December 9, 2020
Bug fix: Removed unnecessary front-end Font Awesome CSS left in by mistake
Release date: September 4, 2020
Bug fix: Skip when empty feature no longer works
Release date: August 20, 2020
Fixed image embed MIME type checking issue that occurs when PHP fileinfo functions are not working
Release date: August 8, 2020
WARNING: this update introduces some changes in plugin operation, these changes should not break anything for existing users, however, testing after an update is encouraged
wpcf7_mail_replace_tags()
for filling CF7 fields input (to improve third party plugin support)Release date: May 15, 2020
Bug fixes
Release date: March 4, 2020
Fixed an issue that causes the removal of attachments from other posts when attaching them to CF7 forms
Release date: January 8, 2020
Bug fixes
Release date: October 27, 2019
Fixed an issue with ajax form submission not always receiving HTML download response message
Release date: September 27, 2019
Added a number of optimizations, bug fixes and improvements
Release date: February 12, 2019
Added filename option with mail-tags feature
Release date: January 15, 2019
Bug fixes and improvements
Release date: April 6, 2018
Major plugin refactoring