pdf generation is so slow

Forminator Forms
2 June, 2023 06:16:34
mahnad
Topics: 1
Messages: 2
I created a form with formidableforms and mapped it to a pdf with e2pdf, but when the form is submitted, it takes 7 minutes or more to register the information and make it ready for download and email it 3 times , and when it tries to download, it gives this error message: [7] Failed connect to api2.e2pdf.com:443; Connection timed out
2 June, 2023 06:25:09
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

For some reason, your server can't connect to the API server. Does your server have access to the internet? If yes, can you try to switch the API server at "E2Pdf" -> "Settings" to api.e2pdf.com / api3.e2pdf.com / api4.e2pdf.com.

If it will not help, let us know please your website URL, however, It can be an issue with your server firewall or misconfigured DNS resolution/hosts file. If you have SSH access to the server, try to log in and ping any API server to see if you will get any response.
We would really appreciate your feedback at WordPress.org!
3 June, 2023 11:49:20
mahnad
Topics: 1
Messages: 2
That problem is solved, but it happens sometimes. But the main problem is that the sending time is very long, the average time is 3 minutes. It seems that the problem comes from the fact that in order to send each email, a pdf is generated from scratch. To solve this problem, the pdf must be generated and saved and then sent three times. I found this code on your site in response to a user's problem I, I used it in formidableForms->setting->actions and notifications->send email ->message:
[e2pdf-save id="1" overwrite="false" attachment="true"]

But it only saves snd sends one form to everyone no matter who fills out the form , while I want each person to receive an email with the form in their name.
3 June, 2023 13:01:24
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

3 minutes is a long time. Do you have a lot of mail actions?

To optimize, you can:
- Try to set the "Flatten" option to "Yes".

As for the "save" shortcode, it looks like the files are saved under the same name, and due to this, it's sending the same pdf attachment. Try to set please "Save Name" to [e2pdf-dataset] or [id].

See please screenshot attached.

If it will not help, let us know please the URL of the website and attach an example of generated PDF to the next message. You can mark the message "Private" so only we can see the message.

We would really appreciate your feedback at WordPress.org!