Generate PDF using Contact Form 7


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.

For PDF we have used MPDF library so in admin side it’s support Below HTML and CSS with editor to generate PDF.

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.

Release Generate PDF using Contact Form 7 Pro

Get more information of Pro version here

Demo for Generate PDF using Contact Form 7 Pro


Getting Help With WordPress

If you have any questions about this plugin, you can post a thread in our forum. Please search existing threads before opening a new one or feel free to contact us at

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!


  • Screenshot ‘screenshot-1.png’ Shows PDF settings of upload PDF in the Contact form.
  • Screenshot ‘screenshot-2.png’ PDF settings of Customize PDF in the Contact form.
  • Screenshot ‘screenshot-3.png’ New options of Page number and file name settings.


  1. Download the plugin zip file from plugin site to your desktop / PC
  2. If the file is downloaded as a zip archive, extract the plugin folder to your desktop.
  3. With your FTP program, upload the plugin folder to the wp-content/plugins folder in your WordPress directory online
  4. Go to the Plugin screen and find the newly uploaded Plugin in the list.
  5. Click ‘Activate Plugin’ to activate it.


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.


  1. You can obtain the required font by downloading it from the GitHub directory provided below.
    Visit Github link
    Download the fonts that’s missing and throwing error

How to Video:

Review Screenshots :

2: Upload this files to this plugin path



28 de agosto de 2023
This plugin provides the perfect solution for the needs of my client – to get information submitted from a form into a pdf and delivered via email. It also has the option to store the pdf in your media library or not. The plugin works great and does exactly what you want. I also wanted to customize how the output from the form would appear on the pdf. To do this I needed to reach out to their support team and ask for help. They provided the specific coding and directions on how to implement it. Not only that, but they replied right away each time I submitted a question. I would give them more stars if I could!
8 de mayo de 2023
Great support staff! Had an issue with the plugin, and after going back and forth several times via the forum, they pushed an update to the plugin that resolved our issue. Awesome job folks!
18 de enero de 2023
I ran into an issue with PDF generation on the PRO version. I submitted a ticket here and within less than 12 hours their support team fixed the problem. Great support.
Leer todas las 32 reseñas

Colaboradores y desarrolladores

«Generate PDF using Contact Form 7» es un software de código abierto. Las siguientes personas han colaborado con este plugin.


«Generate PDF using Contact Form 7» ha sido traducido a 2 idiomas locales. Gracias a los traductores por sus contribuciones.

Traduce «Generate PDF using Contact Form 7» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios


  • Sanitize and verify_nonce and file security issues resolved.
  • Secure plugin


  • Bug and security issues resolved.


  • Add – ‘Post Title’ or Current page title using the [_post_title] Shortcode in the PDF message body settings.”


  • Improved compatibility with WordPress VIP platform by refactoring code to adhere to VIP coding standards.


  • The problem with the formatting of the Table tag has been resolved.


  • The issue on the front end has been resolved.


  • Comma separated Removed From Checkbox,Select Box, and radion button.


  • Uplaod ttf fonts : XB Riyaz , DejaVuSansCondensed.ttf


  • Fixed Bug


  • Display option to add style to pdf uniquely in setting.


  • Added New Feature to select: Attach pdf in mail or not.


  • Fix – Solved issue of attaching pdf in mail.


  • Fix – Solved issue of uploaded Path file Input.


  • Fix – Solved issue and add filter for output content on PDF.


  • Fix – Solved XSS script issue.


  • Fix – Solved Success Message if multiple form on same page.


  • Add – Update MPDF library support in PHP 8.0.x


  • Add – Add New option of Font size if PDF Content.


  • Fix – Remove Static Text from code and make it dynamic from Header option.


  • Add – Add Background Image option in admin side for PDF.


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


  • Add – Add new Options for Page number settings in PDF Fotter.


  • Add – Set Acceotance tag show proper values in PDF. For this Use Proper Tag in PDF editors.


  • Add – Add Option of Remove PDF file from Media Library after mail sent. You can ON / OFF it from admin Options.


  • Add – Set PDF message body editor resizable.


  • Add – Option of Page number and Text.


  • Add – Add Option for Changes Text for PDF link with Success Message.


  • Fix – Solved Mail 2 attachement issue.


  • Add – Add Option for PDF margin Left/Right side.


  • Fix – Fix some minor bug and update.


  • Addon – Add some more shortcode for send basic values of site into PDF.


  • Addon – Add Notification for asking review from all customer from admin.


  • Fix – Fix issue of Multiple Upload file attachement with Latest CF7 and Code Optimization.


  • Fix – Fix issue of Upload file and make compitible with Latest Contact form 7 5.4.


  • Add – Add option for PDF file name in admin side.


  • Fix – Solved issue of Attachement conflict of Default CF7 and our PDF with emails.


  • Add – Add Pages Break Feature for move content to the next Pages.


  • Fix – Fixed Attachment issue with save attachment into Database.


  • Fix – Fixed Attachment issue.


  • Add – Add New option to Set Logo Size in Generated PDF.


  • Fix – Fixed MPDF library Errro with update latest one.


  • Add – Add New Feature of setting margin of Create PDF with Data.


  • Add – Add Date format features and match with WP general settings.


  • Add – Fixed Issue.


  • Add – Now plugin support with Contact Form 7 file option with our PDF attachment.


  • Fix – Issue fixed regarding tooltip with latest version of WordPress 5.5.


  • Fix – Now plugin support in version 5.2 and less then 5.2 of Contact Form 7.


  • Add – Set Default Font to FreeSans for PDF file.


  • Fix – We have fixed for support Dropdown and Radio button in PDF generate.


  • Add – Add New Feature to edit PDF Header/Footer Text.


  • Add support Link.


  • Release version.