include an uploaded pdf file from a formidableform input in PDF template in e2pdf

Formidable Forms
5 May, 2022 00:02:41
martexx
Topics: 3
Messages: 17
Hi

I have a formidableforms form that alows a user to upload a pdf file.
The form is connected to a template in e2pdf and i have created a extra blank page in that template.
I want to insert the uploaded pdf file into the template like i do with the other form data.

I tried to add a HTML object on the empty template page and map that to the file upload field, but it gives a (dutch) error saying i dont have the rights.

Is there a way to do this?
5 May, 2022 02:04:35
E2Pdf
Support
Topics: 7
Messages: 3188
Hi,

E2Pdf can output only the URL of uploaded PDF file so you get the URL which output by Formidable Forms.

The issue happens due using "Protect all files uploaded in this form" setting under Formidable Form as it controls access to uploaded files. So you need or disable this setting or set that "Everyone" can access website or add user group of users who can download files (if your user must can be regitered).

We remain at your service.
We would really appreciate your feedback at WordPress.org!
5 May, 2022 07:03:21
martexx
Topics: 3
Messages: 17
Ok, so we cant natively. mmmm i could use a pdf merging api for this purpose, however since i am your cient already.... does your api allow me to merge pdf files?
I would use the template for the 4 files and then use your api to merge the 4 files with the one of which we have the url
5 May, 2022 09:30:29
E2Pdf
Support
Topics: 7
Messages: 3188
Unfortunately E2Pdf currently can't merge PDF files. We have this point in our roadmap but no yet ETA when it will be reviewed and released so currently you can just output the URL to uploaded PDF.
We would really appreciate your feedback at WordPress.org!
6 May, 2022 04:41:03
martexx
Topics: 3
Messages: 17
How do i do this:
just output the URL to uploaded PDF

I tried pdf - Full path to static PDF
Value: (string)
Usage: [e2pdf-attachment pdf="/home/pdfs/document.pdf"] and came up with:
pdf - Full path to static PDF
Value: (string)
Usage: [e2pdf-attachment pdf=[fieldname]]

But it doesnt work and i dont know how to implement it.

If a user uploads a file how can i get the url of that file and add it to the email as attachement?
6 May, 2022 06:31:03
E2Pdf
Support
Topics: 7
Messages: 3188
Hi,

Unforutnately it will not work like this as [field_id] / [field_key] will output the URL and "pdf" attribute requires file path. If you need just to attach uploaded PDF to mail just use Formidable Forms built-in functionality. See please screenshot attached.
We would really appreciate your feedback at WordPress.org!