Hi,
For a client i have a request to create dynamic PDF creator on his website, for this i am checking this plugin.
All looks great, however the pdf’s are stored inside on “attachments” folder on the website, and when having the URL these pdf’s are viewable by every-one.
(/URL/wp-content/plugins/generate-pdf-using-contact-form-7/attachments)
Why are these pdf’s not deleted after being send as attachment?
Regards,
Kees
<<settings>>
Enable PDF file operation ? YES
Enable PDF Link with Form Success Message ? NO
Do you want to remove PDF attachment after mail sent? YES
Do you want to attach pdf in mail ? YES
Do you want to upload pdf or customize pdf? NO
]]>
When I tried to generate a pdf in Chinese I got this error in the browser console:
POST https://(url) 500 (internal server error)
i is not generate the pdf.
Did you have any solution?
I do not know what update broke the plugin because I have not used it in weeks but now when I tried using it I get the following errors.
File: Mpdf.php on line 20012; PHP message: PHP Warning: Undefined array key “margin”
PHP Warning: Undefined array key “level” on line 20015; PHP message: PHP Warning: Undefined variable $fullpage in Table.php on line 895; PHP Warning: Undefined variable $maxrowheight in Table.php on line 895;
Mind you I am using php 8.2.
]]>I’m testing the free version on a host provider (aruba.it) without encountering any problems. I’m considering purchasing the pro version but on another host provider (register.it) sending the form gets stuck, the hourglass remains and it doesn’t go forward. The form isn’t sent and the pdf isn’t generated. Is any special right required?
This is the log:
[03-Mar-2025 15:46:08 UTC] PHP Fatal error: Uncaught Mpdf\MpdfException: mbstring extension with mbregex support must be loaded in order to run mPDF. in /test/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Mpdf.php:9658
Stack trace: 0 /test/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Mpdf.php(1034): Mpdf\Mpdf->_dochecks() 1 /test/wp-content/plugins/generate-pdf-using-contact-form-7/inc/front/class.cf7-pdf-generation.front.action.php(215): Mpdf\Mpdf->__construct(Array) 2 /test/wp-includes/class-wp-hook.php(326): Cf7_Pdf_Generation_Front_Action->wpcf7_pdf_attachment_script(Object(WPCF7_ContactForm)) 3 /test/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 4 /test/wp-includes/plugin.php(565): WP_Hook->do_action(Array) 5 /test/wp-content/plugins/contact-form-7/include in /test/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Mpdf.php on line 9658
Hi,
Whenever a Chinsse character is being inputted, the PDF generation will keep loading. How can I solve this issue? Please advise. Thanks.
]]>Hi there,
is it possible to have instead of 1 pdf with multiple pages a filebreak (instead of pagebreak) to create an email with multiple pdfs as attachment? is it in pro possible?
]]>Hi there,
in CF7 it is possible to use pipes | to get another correpsonding value other than which is shown at the front-end during seletion.
https://contactform7.com/selectable-recipient-with-pipes/
the value is called in CF7 with [_raw_{field name}] , but this won’t work in the pdf.
is there a solution or did i miss something?
]]>In every generated PDF I have a red cross in the top left as if a graphic cannot be loaded. I don’t use the logo graphic, but a background graphic. How can I remove this? And how do I get rid of the dividing line to the head area?
]]>When a tag is empty, i.e., not filled out, the PDF does not create a border around the cell. This makes the generated PDF look inconsistent, as cells with and without borders alternate. I tried several approaches to solve this problem but none worked (e.g. adding a css class or <span style=”visibility:hidden;”> or ). Do you have an idea on how I could solve this issue?
Example code snippet:
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Event Auftrag</title>
<style>
.pdf-cell {
border: 1px solid black;
min-height: 20px;
min-width: 100px;
}
</style>
</head>
<body>
<h2>Event-Auftrag: <u>[veranstaltungstitel]</u></h2>
<p>Auftragsnummer: <strong>Siehe E-Mail</strong></p>
<table style="border-collapse: collapse; width: 100%;" cellpadding="5">
<tr>
<td colspan="2" style="border-bottom: 1px solid black;">
<h3 style="margin-top: 10px; margin-bottom: 10px;"><u>Allgemein</u></h3>
</td>
</tr>
<tr>
<td class="pdf-cell"><strong>Name</strong></td>
<td class="pdf-cell">[your-name]</td>
</tr>
<tr>
<td class="pdf-cell"><strong>E-Mail</strong></td>
<td class="pdf-cell">[your-email]</td>
</tr>
<!-- Weitere Zeilen... -->
</table>
</body>
</html>
Thanks for your help,
best regards!
Hello!
Is there a way to change the date format in the PDF? (from “YYYY-MM-DD” to “d M y”).
Best regards!
]]>How to prevent anyone from viewing/downloading the PDFs that are created by the plugin in the upload folder? Specifically, prevent from accessing the files if knowing the direct link to it?
]]>Hello –
I’m getting many PHP Warning: Undefined array key
25-Oct-2024 00:29:52 UTC] PHP Warning: Undefined array key 0 in /home/********/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php on line 533
[25-Oct-2024 00:29:52 UTC] PHP Warning: Undefined array key 0 in /home/********/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php on line 533
[25-Oct-2024 00:29:52 UTC] PHP Warning: Trying to access array offset on value of type null in /home/********/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php on line 533
[25-Oct-2024 00:29:52 UTC] PHP Warning: Trying to access array offset on value of type null in /home/********/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php on line 533
[25-Oct-2024 00:29:52 UTC] PHP Warning: Undefined array key 0 in /home/********/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php on line 570
[25-Oct-2024 00:29:52 UTC] PHP Warning: Undefined array key 0 in /home/********/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php on line 571
[25-Oct-2024 00:29:52 UTC] PHP Warning: Undefined array key 0 in /home/********/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php on line 573
[25-Oct-2024 00:29:52 UTC] PHP Warning: Undefined array key “nc” in /home/********/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php on line 573
[25-Oct-2024 00:29:52 UTC] PHP Deprecated: array_pad(): Passing null to parameter #2 ($length) of type int is deprecated in /home/********/public_html/wp-content/plugins/generate-pdf-using-contact-form-7/inc/lib/mpdf/vendor/mpdf/mpdf/src/Tag/Table.php on line 574
That is just some of them there are many more.
]]>Please don’t laugh if this question appears silly.
I just installed and activated this Generate PDF plugin.
In settings, I selected the contact form I want to generate pdf when the form is submitted.
Then I made some changes to the settings such as Send As Attachment. then saved the settings.
I have attempted submitting several forms since then but each time I check the email, I see no attachment to the email.
Is there something I am missing?
Thank you in advance for your assistance.
]]>Hi! I created the pdf from the cf7 fields and I can’t transform the date from yyyy-mm-dd to dd-mm-yy. I tried modifying the functions.php file but I don’t actually think that field depends on that string. Can anyone help me? Thanks in advance.
]]>After submitting the form as a popup, it takes a long time to load (I’ve hidden the popup in the meantime). And I get this error message : Response?{type: ‘basic’, url: ‘NAMESITE/wp-json/contact-form-7/v1/contact-forms/26428/feedback’, redirected: false, status: 503, ok: false,?…}
The email ends up being sent after a very long time. How can I fix this? I’ve seen it happen to someone else, and it worked itself out, but not me.
Dear Sirs,
We are using the plugin to upload a PDF file to be downloaded after fill in a form. You can find the form and test clicking on the “Sample” button in MXQ Recycled Plastics LATAM item of MXQ Market Report section.
After the file is uploaded, the plugin points to an incorrect URL like “www/wp-content/plugins/generate-pdf-using-contact-form-7/attachments/filename.pdf”, which is obviously incorrect.
Can you help us with this?
Thanks in advance,
Marco Andrei
]]>Is there a way to output date in d.m.Y format in PDF Message body?
Found tag [_format_birthdate “d.m.Y”] for CF7 Message body, but it doesn’t work for your plugin.
Hi,
I found another issue like this on the forum, however permission changes and plugin setup changes did not help at all.
The idea was that the client fills up the contact form, once filled and submitted, the link with pdf appears. And when you click on – it redirects you to the new tab with the pricelist in pdf. And it used to work perfectly. Now there is an issue:
Once I click on the link with Form success message it redirects me to the new tab with the 404 error. Also, the same time there is a new pdf file created and when I check it in Media Library – it has the same error.
The correct pdf file is correctly uploaded to the plugin. Also checked in /plugins/generate-pdf-using-contact-form-7/attachments the correct file is here and opens normally.
Any thoughts?
]]>Hi I have a few questions,
1. how to add list items with bullet points? I see a question mark in pdf when using. <ul> <li>item 1</li><li>item 2</li> </ul>
2. does it support display type: inline, inline-block or flex as for me it doesn’t seem to work
3. if I add bullet points in a text-area in a form it doesn’t preserve the bullet points again and shows questions marks, is that supported?
4. are line break inside text-area supported, currently for me I see inline-text
5. can the download link (which is shown to pdf when form is submitted) be designed and converted to a button?
6. Possible to put logo in footer too instead of text on left, also change background of footer?
7. Special characters from German Language also shows question mark e.g: “für”, current output: f?r
]]>Hello,
I’m wondering if it’s possible to have the acceptance field show in the PDF as something more user friendly than “1”? It can be as simple as (ideally localisable) “Yes” or “Accepted”.
]]>I saw a prior topic on this subject that says this is resolved, however, I’m running into the same issue.
I want to use Mail (1) to send form details and the attached PDF generated. I want to use Mail (2) for an autoresponder but I don’t want the form PDF attached to this email. I tried various things but it keeps being attached to BOTH emails.
Any help would be greatly appreciated!
]]>Hi @zealopensource,
we just had the necessity to place a CF7 field tag into the PDF footer pagination. But we had to face the fact that this doesn’t seem to be possible at the moment. Only things like page numbers and so on can be placed into the footer pagination, not any form data from a CF7 field tag as it is possible in the PDF message body.
Especially we would have a user form provided name that has to appear in the generated PDF reliably on every single page independent from the PDF message body differing in size / length.
Would it be possible that you add a feature to make it possible to use CF7 field tags in the footer pagination of the generated PDF, too?
Greetings and thank you for your work,
-doffine
The Generate PDF using Contact Form 7 plugin for WordPress is vulnerable to Cross-Site Request Forgery to Arbitrary File Upload in versions up to, and including, 4.1.0. This is due to missing nonce validation and the plugin not properly validating a file or its path prior to deleting it in the ‘wp_cf7_pdf_dashboard_html_page’ function. This makes it possible for unauthenticated attackers to delete arbitrary files, including the wp-config.php file, which can make site takeover and remote code execution possible via a forged request granted they can trick a site administrator into performing an action such as clicking on a link.
]]>Hello
Since two weeks Contact Form 7 won’t send email when Generate PDF is activated. The wheel keeps spinning indefinitely without either displaying a success or an error message as usual.
Plugins in use:
Contact Form 7 (5.9.8)
Conditional Field for Contact Form 7 (2.4.15)
Generate PDF using Contact Form 7 (4.0.9)
Rollbacks to previous plugin versions (either only Generate PDF or also Contact Form 7 and / or Conditional Field) or deactivating Conditional fields did not succeed.
Pleace advice.
Thanks and best regards,
Christoph
I need assistance in resolving form submission as pdf.
I am using CF7 and generate pdf using cf7 plugin to generate PDF.
I have attached the link to the error log after form submission. https://mpdferrorlog.tiiny.site
Kindly assist
]]>A CSRF vulnerability has been discovered, but the plugin is currently closed, preventing me from updating to version 4.0.8.
]]>Why is this plugin putting PDFs with sensitive data straight in the ‘uploads’ directory, a public directory?
To disable this:
Enable PDF Link with Form Success Message ???No
Do you want to remove PDF attachment after mail sent??Yes
Requesting to place PDFs in a private map outside the uploads in the next update.
]]>Hello, I have a small problem. In the PDF generated for my contact form, I am unable to insert the dynamic field [_post_title]. It works correctly in the email received from CF7, but it is not included in the PDF (it just remains [_post_title] as it is written). How can I resolve this?
]]>I have to face issue when submit contact form and when I have to check into network show this error and I have screenshot be here.
]]>I am currently using the following settings (link below). Whenever I receive a PDF, it gets stored in the plugin folder under “attachments.” How can I prevent this from happening? Otherwise, the server fills up very quickly.
Image:
Thank you for your assistance.
]]>