# Send PDF for Contact Form 7

Create, customize and send PDF attachments with Contact Form 7 form.

This plugin adds conditional logic to <a href="https://wordpress.org/plugins/contact-form-7/">[Contact Form 7]</a>.

Send the PDF for Contact Form plugin will allow you to recover the data yourself via your form to insert them into a PDF built and prepared by you.

This plugin requires the installation and activation of the plugin Contact Form 7.

Translations: <a href="https://translate.wordpress.org/projects/wp-plugins/send-pdf-for-contact-form-7/">Here</a>

<a href="https://demo.restezconnectes.fr/send-pdf-for-contact-form-7/">[Demo Here]</a>
<a href="https://restezconnectes.fr/tutoriel-wordpress-lextension-send-pdf-for-contact-form-7/">[Tutorial Here]</a>

Current Version:  1.0.3.12

== Changelog ==

= 1.0.3.12 =
* Fix: "Create PDF" menu and Settings link not displayed with Contact Form 7 6.2+ (new CF7 dashboard menu)
* Update: mPDF library upgraded from 8.0.10 to 8.3.1 (PHP 8.4 / 8.5 compatibility)
* Update: Custom fonts moved out of the mPDF library to the plugin's /fonts folder (no longer lost on library updates)
* Fix: "IslandMoments" font not applied when selected in settings
* Fix: PHP 8.4 deprecation notice with fputcsv() in CSV export
* Fix: [if] conditions with "equal" operator now work with multiple checked checkboxes separated by line breaks
* Removed conditional tags debug logs
* Requires WordPress 6.5+ and declares Contact Form 7 as a required plugin

= 1.0.3.11 =
* **Security:** Fixed critical PHP Object Injection (CWE-502) in stored form submission data. Submission values are now stored as JSON (`wp_json_encode`) instead of PHP `serialize()`, and public/admin reads no longer use unrestricted `unserialize()`.
* **Security:** Removed `sanitize_textarea_field()` on serialized submission blobs, which could corrupt length prefixes and enable crafted payload injection.
* **Compatibility:** Legacy rows stored with PHP `serialize()` are still readable via a safe fallback (`allowed_classes => false`) with strict scalar-array validation.

= 1.0.3.10 = 
* Fixed bug with Import / Export settings
* Fixed bug with delete all settings

= 1.0.3.9 = 
* Adding conditionnal field [if TAG]Your text [TAG].[else]Your text [TAG][/if] or  [if TAG]Your text [TAG].[/if]
* Fixed bug with Conditional Fields for Contact Form 7

= 1.0.3.8 = 
* NEW: Option to Force adding reference in name of PDF for email attachment or download
* Fix bug header CSV file
* Fix bug generate PDF
* Adding 'change uploads folder name' option (enter a name) if 'change uploads folder' option is true
* No copying PDF & CSV with REFERENCE if 'Disable data submit in a database' option is true

= 1.0.3.7 = 
* Fix bug for background image

= 1.0.3.6 = 
* Fix bug for [url-pdf] tag
* Fix bug for "free_text" checkbox tag

= 1.0.3.5 = 
* Fix bug checkbox buttons

= 1.0.3.4 = 
* Fix bug checkbox & radio buttons

= 1.0.3.3 = 
* Fix Warning: unserialize()

= 1.0.3.2 = 
* Fix bug checkbox button if is not exclusive
* Remove sanitize name of PDF

= 1.0.3.1 = 
* Fix bug radio button + case sensitive

= 1.0.3.0 = 
* Fix bug deleting PDF
* Fix bug error array() tag free_text


## Installation
1. Upload the full directory into your '/wp-content/plugins' directory
2. Activate the plugin at the plugin administration page
3. Open the plugin configuration page, which is located under 'Contact->Send PDF with CF7'

### Some screenshots:

![Admin Setting - Select your form](https://madeby.restezconnectes.fr/plugins/send-pdf-for-contact-form-7/screenshot-1.png)
![Admin Setting  view](https://madeby.restezconnectes.fr/plugins/send-pdf-for-contact-form-7/screenshot-2.png)
![Admin Layout View](https://madeby.restezconnectes.fr/plugins/send-pdf-for-contact-form-7/screenshot-3.png)
