
Generate PDF using Contact Form 7 Plugin provides an easier way to download document files in PDF format, open PDF document file or send as it as an a …
Generate PDF using Contact Form 7 plugin provides an easier way to download PDF documents, open the PDF document file after the successful form submission.
Here, a user can set the document file (PDF) from the ‘Form Setting’ Page of each Contact form.
When the user fills the form and submits it, the same document will get open in a new tab. Once it gets opened, the user would be able to download it to the local system.
Also, in case an admin does not want any user to open it in-browser, admin can adjust settings and send that particular PDF as an email attachment.
Note
For PDF we have used MPDF library so in admin side it’s support Below HTML and CSS with editor to generate PDF.
https://mpdf.github.io/css-stylesheets/supported-css.html
https://mpdf.github.io/html-support/html-tags.html
Features of Generate PDF using Contact Form 7
- Attach PDF file to the Form Notifications Emails that are sent to the user and/or administrator, from the Admin side.
- In the message, the link of the attached PDF file is displayed, along with Thank You Message of the Form Submission
- Admin can add different PDFs with different Contact Forms and can create multiple forms.
- Admin can create their own PDF with submitted Data in the Form
- Admin can customize your PDF form by adding a logo on the Header and other relevant Form * Fields while sending a Thank You Message to the user.
- Ablity to Update PDF Header/Footer Text.
- Ability to add file option with our PDF attachement in mail.
- We can use Page Break and new content will be move on next pages in PDF.
- For Acceptance Field use particular tag in PDF editor then only it’s showing proper value. Ex. [acceptance-] Start tag as example then you can use any word for tags like [acceptance-terms-condition] OR [acceptance-policy] etc.
- You can set file name from admin also use any form tag instead of file name.
- Add Page number options in admin so you can add Text with PDF page number.
- Ability to set font size of PDF content.
- Compatibility of WordPress VIP.
Demo for Generate PDF using Contact Form 7
Release Generate PDF using Contact Form 7 Pro
Get more information of Pro version here
Demo for Generate PDF using Contact Form 7 Pro
OUR OTHER PLUGINS
Getting Help With WordPress
If you have any questions about this plugin, you can post a thread in our WordPress.org forum. Please search existing threads before opening a new one or feel free to contact us at support@zealousweb.com
We also offer custom WordPress extension development and WordPress theme design services to fulfill your e-commerce objectives.
Our professional impassioned WordPress experts provide profound and customer oriented development of your project within short timeframes.
Thank you for choosing a Plugin developed by ZealousWeb!
Screenshots

PDF with CF7 Settings — select a contact form and configure PDF operation, download link, email attachment, and header logo options.

PDF with CF7 Settings — customize logo dimensions and PDF page margins (header, footer, top, bottom, left, right).

PDF with CF7 Settings — set font size, show or hide label field tags, edit the PDF message body, file name prefix, and background image.

PDF with CF7 Settings — live PDF preview and password-protected PDF options.

PDF Submissions — view all generated PDFs in one list with form name, download, and view links.

PDF Submissions — open a single submission to see form details, submission date, and PDF view or download links.

Help & Support — access the plugin guide, submit a support ticket, subscribe to the newsletter, and browse FAQs.
FAQ
Can I attach a PDF to Contact Form 7 notification emails?
Yes. From the admin side, you can attach a PDF file to form notification emails sent to the user and/or administrator.
Is a PDF download link shown after form submission?
Yes. A link to the generated PDF can be displayed in the form success message along with your thank you text.
Can I use different PDF settings for different Contact Form 7 forms?
Yes. You can configure a separate PDF for each contact form and create as many forms as you need.
Can I generate a PDF with submitted form data?
Yes. You can create a custom PDF using the data submitted through the contact form.
Can I add a logo and form fields to the PDF?
Yes. You can customize the PDF by adding a header logo and including relevant form field values in the PDF content.
Can I update the header and footer content of the PDF?
Yes. You can add content to the PDF header and footer from the admin side, and set the header and footer margins in the PDF settings.
Can I include uploaded files from the form with the PDF email attachment?
Yes. The plugin supports adding file options along with the PDF attachment in mail.
How do I add a page break in the PDF?
You can use a page break in the PDF message body so new content moves to the next page.
How do I show Acceptance field values in the PDF?
Use a tag that starts with [acceptance-] in the PDF editor. For example, [acceptance-terms-condition] or [acceptance-policy], matching your acceptance field name.
Can I set a custom PDF file name?
Yes. You can set the PDF file name prefix from the admin settings and use any form field tag as part of the file name.
Can I add page numbers to the PDF?
Yes. Page number options are available in the admin settings so you can display custom text with the PDF page number.
Can I change font size in PDF file content?
Yes. The default font size is 9px, but you can change it from the admin side.
Where can I view past PDF submissions?
The PDF Submission List keeps all your form submissions organized and accessible in PDF format for easy viewing and record-keeping.
Is there a dedicated menu for managing PDFs in the WordPress admin?
Yes. A separate PDF menu in the WordPress admin dashboard lets you quickly manage, view, and configure PDFs.
Can I preview the PDF before saving or sending?
Yes. Live PDF Preview lets you see exactly how your PDF will look before saving or sending.
Can I password-protect generated PDFs?
Yes. You can secure generated PDFs with a password to control who can access sensitive information.
Where can I find plugin documentation and support?
The Help & Support section provides documentation, FAQs, support ticket submission, guides, blogs, and newsletter subscription options in one place.
Is this plugin compatible with WordPress VIP?
Yes. The plugin is compatible with the WordPress VIP platform.
How to upload mpdf TTf Fonts in library
To prevent the plugin from becoming too large, we have opted to utilize common TTF fonts and have included them in the plugin.
However, if you encounter a fatal error that states “Cannot find TTF TrueType font file ‘XB Riyaz.ttf’ in configured font directories”
because you are using a different font, you will need to upload the necessary font to the designated plugin path.
/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/ttfonts
- You can obtain the required font by downloading it from the GitHub directory provided below.
Visit Github link https://github.com/mpdf/mpdf/tree/development/ttfonts
Download the fonts that’s missing and throwing error
How to Video: https://www.awesomescreenshot.com/video/17025362?key=99cbec8974ee85fdad75e8cea60a97d6
Review Screenshots :
https://prnt.sc/ZKde74y12q3N
https://prnt.sc/PsXaTarHTx4m
2: Upload this files to this plugin path
/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/ttfonts
S.S https://prnt.sc/-TLx40Qup76r
ChangeLog
4.2.2
- Security – Escape array-valued Contact Form 7 fields before inserting them into the PDF body (SSRF via HTML injection). Reported by Artus KG.
4.2.1
- Fix – Restored page break support using the user-friendly [page-break] tag (and legacy pagebreak markup).
- Fix – PDF dynamic tags such as [date], [time], [random-number], [_site_title], [_site_url], [remote_ip], and [_post_title] now replace correctly in generated PDFs.
- Improvement – Redesigned Field tags and PDF tags panel in the admin with click-to-insert tags.
4.2.0
- PDF Submission List: Keep all your form submissions organized and accessible in PDF format for easy viewing and record-keeping.
- Dedicated PDF Menu in Admin Panel: Quickly manage, view, and configure PDFs from a separate, easy-to-use menu in the WordPress admin dashboard.
- Live PDF Preview: See exactly how your PDF will look before saving or sending, ensuring perfect formatting every time.
- Password-Protected PDFs: Secure your generated PDFs with a password to control who can access sensitive information.
- Access helpful resources including documentation, FAQs, and support options in one place.
- Easily submit support tickets or explore guides to resolve issues quickly.
- Stay updated with the latest insights through blogs and newsletter subscriptions.
- Tested with the latest version of WordPress (7.0).
4.1.7
- Tested with the latest version of WordPress (7.0).
- Fix – Sanitize PDF filenames so characters such as / and # in form fields no longer cause errors or broken download links.
4.1.6
- Added a new option to Show or Hide Label Field Tags
4.1.5
- Minor changes – Doc update
4.1.4
- Minor workflow adjustments
4.1.3
- Backed side issue fixed.
- Secure plugin
4.1.2
- The issue with removing PDF attachments has been fixed.
- Secure plugin
4.1.1
- Sanitize code
- Secure plugin
4.1.0
- The backend warning issue has been resolved.
- Secure plugin
4.0.9
- Sanitize and verify_nonce and file security issues resolved.
- Secure plugin
4.0.8
- Bug and security issues resolved.
4.0.7
- Add – ‘Post Title’ or Current page title using the [_post_title] Shortcode in the PDF message body settings.”
4.0.6
- Improved compatibility with WordPress VIP platform by refactoring code to adhere to VIP coding standards.
4.0.5
- The problem with the formatting of the Table tag has been resolved.
4.0.4
- The issue on the front end has been resolved.
4.0.3
- Comma separated Removed From Checkbox,Select Box, and radion button.
4.0.2
- Uplaod ttf fonts : XB Riyaz , DejaVuSansCondensed.ttf
4.0.1
4.0
- Display option to add style to pdf uniquely in setting.
3.10
- Added New Feature to select: Attach pdf in mail or not.
3.9
- Fix – Solved issue of attaching pdf in mail.
3.8
- Fix – Solved issue of uploaded Path file Input.
3.7
- Fix – Solved issue and add filter for output content on PDF.
3.6
- Fix – Solved XSS script issue.
3.5
- Fix – Solved Success Message if multiple form on same page.
3.4
- Add – Update MPDF library support in PHP 8.0.x
3.3
- Add – Add New option of Font size if PDF Content.
3.2
- Fix – Remove Static Text from code and make it dynamic from Header option.
3.1
- Add – Add Background Image option in admin side for PDF.
3.0
- Fix – We have update PDF generate code and ignore blank Form tag from PDF.
- Add – Add Page number option with admin settings, so you can add Text with Number prefix and suffix in PDF.
- Add – Set file name options like if you want to use Form Tag instead PDF file name.
2.11
- Add – Add new Options for Page number settings in PDF Fotter.
2.10
- Add – Set Acceotance tag show proper values in PDF. For this Use Proper Tag in PDF editors.
2.9
- Add – Add Option of Remove PDF file from Media Library after mail sent. You can ON / OFF it from admin Options.
2.8
- Add – Set PDF message body editor resizable.
2.7
- Add – Option of Page number and Text.
2.6
- Add – Add Option for Changes Text for PDF link with Success Message.
2.5
- Fix – Solved Mail 2 attachement issue.
2.4
- Add – Add Option for PDF margin Left/Right side.
2.3
- Fix – Fix some minor bug and update.
2.2
- Addon – Add some more shortcode for send basic values of site into PDF.
2.1
- Addon – Add Notification for asking review from all customer from admin.
2.0
- Fix – Fix issue of Multiple Upload file attachement with Latest CF7 and Code Optimization.
1.9.9
- Fix – Fix issue of Upload file and make compitible with Latest Contact form 7 5.4.
1.9.8
- Add – Add option for PDF file name in admin side.
1.9.7
- Fix – Solved issue of Attachement conflict of Default CF7 and our PDF with emails.
1.9.6
- Add – Add Pages Break Feature for move content to the next Pages.
1.9.5
- Fix – Fixed Attachment issue with save attachment into Database.
1.9.4
- Fix – Fixed Attachment issue.
1.9.3
- Add – Add New option to Set Logo Size in Generated PDF.
1.9.2
- Fix – Fixed MPDF library Errro with update latest one.
1.9.1
- Add – Add New Feature of setting margin of Create PDF with Data.
1.9
- Add – Add Date format features and match with WP general settings.
1.8
1.7
- Add – Now plugin support with Contact Form 7 file option with our PDF attachment.
1.6
- Fix – Issue fixed regarding tooltip with latest version of WordPress 5.5.
1.5
- Fix – Now plugin support in version 5.2 and less then 5.2 of Contact Form 7.
1.4
- Add – Set Default Font to FreeSans for PDF file.
1.3
- Fix – We have fixed for support Dropdown and Radio button in PDF generate.
1.2
- Add – Add New Feature to edit PDF Header/Footer Text.
1.1
1.0