Increase PDF Generation Time

Formidable Forms
14 June, 2019 16:12:53
jstraete
Topics: 34
Messages: 111
I'm working on some form editing here that got me thinking about a couple of things that I guess I'd say are either questions or feature requests related to form loading time:

- On one of my PDFs, it has the potential to be 20 pages long, with lots of fields and actions on them. It's loading data from a repeatable Formidable Form field (i.e. [180:1] goes on one page, [180:2] on the next, etc.), and because I don't know how many entries there will be, I essentially cap it at [180:20]. Then to prevent getting a bunch of blank pages, I add a page action that says "if [180:2] is blank then Hide", "if [180:3] is blank then Hide", etc. So, my question / feature request here would be, does the plugin process those pages actions before processing the fields on the page first, and then if the page is set to be hidden anyway, it doesn't have to execute all those fields on the page? If that's what's already happening anyway then great, if not, if the logic could be setup that way it'd be a big time saver I would think in my instance, as it would prevent a bunch of fields from having to be processed as typically I only have 1-3 entries in my repeatable field, but have it go up to 20 as I said just to be able to fulfill those extreme cases when there is that many.

- I was thinking about one day we were working and my PDFs weren't generating, which ended up being due to a DNS issue that we resolved after I changed a setting on my server. This leads me to believe that it connects to your server to process whatever information, and then sends it back to mine. Assuming that's true, could whatever is being done there just be setup on the plugin to be able to run that all on the same server as my website? I would assume that would cut down the form loading time significantly if it were all processed on the same server. I imagine there is a logical explanation as to why it's setup as it is now, such as certain server configurations, but if it would be possible to list what those requirements are, and then allow an option in the settings to run on the same server instead of connecting to yours, I would think that'd be a win-win (ideally it would cut down on page generation time, and it would cut down on your server resources).
14 June, 2019 17:36:23
E2Pdf
Support
Topics: 7
Messages: 3330
Hi,

- Actions and Conditions fire in this way:
1. It process "Actions" from page. If page is hidden, it's excluded and do not process other actions of fields and do not render values from it.
2. If page shown it starts process "Actions" on fields.
3. If field is visible it process its values.

When all data processed on your server it's sending API call to our server to generate PDF.

- We have backend engine on our API server which process data and prepare PDFs and unfortunately we do not plan to include it with plugin installation due some different reasons in that time.

P.S. We plan to offer some other service like dedicated servers which can be rented so you can use all its resourses by yourself, but it's currently under discussion stage.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
14 June, 2019 17:44:14
jstraete
Topics: 34
Messages: 111
Ok, well that's good to know then at least that my extra pages don't do much to increase the load time here. On that 20-page example, it takes about 10 seconds to load the PDF on the screen after the page itself loads, which to me isn't too bad, but if there were options to make that faster I would certainly explorer them. Thanks!
14 June, 2019 17:51:58
E2Pdf
Support
Topics: 7
Messages: 3330
We are continuously trying to improve speed generation and response time as we understand that load time is also matter and we are doing our best to improve whenever it's possible.

We remain at your service.
We would really appreciate your feedback at WordPress.org!