Automatically saving generated PDFs per user

20 May, 2025 02:18:09
Buakaw
Topics: 1
Messages: 4
Hi E2PDF team,

I’ve just upgraded to the Pro licence (20 templates) and will be generating several PDFs from Forminator forms. I’d like each PDF to be stored in a way that we can easily display it in the user’s account area.

My ideal workflow is:

The form is submitted.

E2PDF generates the PDF.

The file is saved in a location that’s clearly linked to the submission/user—­for example, as an attachment within the Forminator submission record or in a per-user folder.

Is it possible to have the PDF saved directly within the Forminator submission, or would you recommend a different approach for reliably pulling the files later on?

Thanks in advance for your guidance.
20 May, 2025 02:42:45
E2Pdf
Support
Topics: 7
Messages: 3498
Hello,

By default, E2Pdf does not save any PDF files. Instead, it generates PDFs in real time. You can generate a PDF at any time from previously submitted entries by going to E2Pdf → Create PDF.

As another option, it's possible to use a Hidden field with the default value set as the [e2pdf-download id="1"] shortcode.

However, If you still need to save PDFs to a specific folder on the server upon submission, this can be achieved using the [e2pdf-save] shortcode: https://e2pdf.com/docs/shortcodes/e2pdf-save in the Success Message or Mail Body. For example, to save PDFs in a user-specific folder, you can use the following shortcode in the Success Message / Mail Body:

[e2pdf-save id="1" dir="wp-content/uploads/pdfs/{user_id}" create_dir="true"]

This will automatically create the folder if it doesn't exist and save PDF. The saved PDF filename can be set using the PDF Local Name setting in the E2Pdf Template Settings: https://e2pdf.com/docs/templates/builder/settings#pdf
We would really appreciate your feedback at WordPress.org!
21 May, 2025 07:13:37
Buakaw
Topics: 1
Messages: 4
Hello,

Thank you so much for your input—it works great!

I have one more question regarding the PDF creation. Is it possible to have the first two pages generated by Forminator and then import a third page from another PDF? I need some pages to be filled out on paper after printing the PDF, rather than displaying Forminator values.
21 May, 2025 07:18:21
E2Pdf
Support
Topics: 7
Messages: 3498
Hello,

Unfortunately, mixing or importing custom pages is not currently supported.

As an alternative, you can modify the original PDF to contain three pages - have the first two pages blank + the third required page - then use this modified file as your PDF source.
We would really appreciate your feedback at WordPress.org!
22 May, 2025 05:57:57
Buakaw
Topics: 1
Messages: 4
Hello, thank you for the suggestions! I’ll try exporting an image from the original PDF and inserting it into the Forminator E2PDF for now.
I also have a couple of other questions:

How can I display fields conditionally in the PDF, as I do in the Forminator form? For example, I have a radio field for Mr./Ms. and, based on the selection, I want to show a greeting such as “Hello Mr.” or “Hello Ms.”; at the moment both greetings appear.

Why does some text in the PDF look smudged on certain lines? In the PDF editor it looks fine, but in the preview or the generated file it appears distorted.
22 May, 2025 07:02:19
E2Pdf
Support
Topics: 7
Messages: 3498
Hello,

Do you use different elements? If so, a single HTML element should be used to keep the content relative. This is because E2Pdf uses "absolute" positioning, and due to differences in how PDFs render compared to HTML, the text can appear in different sizes.

Could you please download and attach the backup of your E2Pdf Template:
https://e2pdf.com/docs/templates/backup
Alternatively, you can download backup and send it directly to [private].

As for dynamic content, if the content is shown within a single HTML element, there are two possible solutions:

1. Use "Actions" and "Conditions" to replace the required text. It can be created some own slugs. Please see screenshot 1.

or

2. Use the [e2pdf-if] functionality:
https://codefile.io/f/FWqK1NCvOr
Please see screenshot 2.

If the element is separate, refer to element actions:
https://e2pdf.com/docs/actions/element
Please see screenshot 3.

We would really appreciate your feedback at WordPress.org!
22 May, 2025 07:45:06
E2Pdf
Support
Topics: 7
Messages: 3498
P.S. Please keep in mind that "Radio 1" should be replaced with the appropriate value based on your field settings in Forminator Forms. To ensure you're comparing the correct value, you can temporarily create a textarea field and use it to display the field slug — for example: {radio-1}.
We would really appreciate your feedback at WordPress.org!
22 May, 2025 11:20:06
Buakaw
Topics: 1
Messages: 4
Hello,

Thanks for the suggestions! I think it mostly worked but there are still a couple of issues.

Please find attached two screenshots. The layout looks perfect in the editor; however, in the PDF preview/generated file the Ort & Datum fields are misaligned and lack borders, and the numbers/calculations are not right-aligned.

I've sent the template backup via email because I get an error when trying to upload it here.