Cannot display logo in PDF

Formidable Forms
4 December, 2023 02:58:21
Gderon
Topics: 4
Messages: 20
Hello,
I use Formidable Forms to create customer accounts and record certain data (address, phone, LOGO...) in meta fields.
I use E2PDF so that customers can generate different PDFs. I would like the clent's logo to be displayed on the PDFs it generates.
In the template, I use the Image object with the following value:
[e2pdf-user id="dynamic" key="pf_logo" meta="true" attachment_image_url="true" size="full"][e2pdf-wp key="post_author_id"][/e2pdf-user]
But the logo refuses to show itself on the PDF.

Can you help?
4 December, 2023 03:13:24
E2Pdf
Support
Topics: 7
Messages: 3330
Hello,

Does the client's logo must be displayed on the other PDFs that were generated from the other form submissions?

Can you please create a simple "textarea" inside the E2Pdf Template and use shortcode as:

[e2pdf-user key="pf_logo" meta="true"]

What is the output?
We would really appreciate your feedback at WordPress.org!
11 December, 2023 01:46:26
Gderon
Topics: 4
Messages: 20
Hello,

As you suggested, I've created a tecte zone with the shortcode [e2pdf-user key="pf_logo" meta="true"].

The PDF displays a 4-digit number.
11 December, 2023 01:49:35
E2Pdf
Support
Topics: 7
Messages: 3330
Try please to use the shortcode as follows:

[e2pdf-user key="pf_logo" meta="true" attachment_image_url="true" size="full"]

It must return the "Image" URL. If yes - just use the shortcode inside the "Image" object.
We would really appreciate your feedback at WordPress.org!
11 December, 2023 02:04:41
Gderon
Topics: 4
Messages: 20
I forgot to specify something:
users create their own (unique) account and create custom posts via Formidable Forms.
The logo to be displayed is therefore that of the post's author.
11 December, 2023 02:09:35
Gderon
Topics: 4
Messages: 20
Using [e2pdf-user key="pf_logo" meta="true" attachment_image_url="true" size="full"] in the text area return URL.
But used in the image object, it returns nothing with Image Only checked, and returns the image URL when Image only is unchecked.
11 December, 2023 02:15:30
E2Pdf
Support
Topics: 7
Messages: 3330
It can happen due E2Pdf is unable to access the Image or the image can't be loaded. Can you let us know please which URL you get?

P.S. You can mark the message as "Private" so only support can see your message.
We would really appreciate your feedback at WordPress.org!
11 December, 2023 02:19:41
Gderon
Topics: 4
Messages: 20
That's it !!

I had indeed checked a file protection option in Formidable Forms.
Shame on me for not thinking of it.

Thank you very much for your help.

You can close this topic.
11 December, 2023 02:25:56
E2Pdf
Support
Topics: 7
Messages: 3330
Great to hear that it seems the issue was identified.

Just note:
Depending on your needs, if you are using the "file" image upload field in the form that must generate a PDF, you can also just use that Field ID as the "Image" object value. [e2pdf-user] shortcode will always get the actual user "logo" who submitted the entry and got the generated PDF URL.
We would really appreciate your feedback at WordPress.org!