The images are displayed randomly.

Gravity Forms
3 June, 2024 06:53:09
AirBelV2
Topics: 2
Messages: 11
Hello, I'm using Gravity Forms. On my PDF, I have 3 pages. On each page, I need to display an image that is the same for each page. To do this, I'm using an "image" object. See the photo:

[private]

The image object is mapped to a text input that contains the link to the image to be displayed in this format:
[private]

see the photo:
[private]


The link in the text input containing the image is generated randomly from a script that chooses a random image based on all those present in a file on my site. The script works perfectly because when I look at the entries on Gravity Forms, there is always a valid link in the text input.

Here are the properties of my image object:
[private]



The issue is that once the form is submitted, I do have the link to download the PDF, but the image is randomly visible. Sometimes I have to download the PDF several times for the image to appear. Sometimes it only appears on the first page but not on the others. It works more often on a computer than on a mobile device, but there's no logic to when the image appears.
3 June, 2024 07:26:34
E2Pdf
Support
Topics: 7
Messages: 3345
Hello,

There are some settings on the host or plugin that are blocking requests. When the image is not shown, your host reports a 403 Blocked response.

We suspect that it's happening on your server due to the requests for the same image several times so it triggers some protection on your side. If you know what can cause it, try to white-list the IP of your server to avoid blocking.

Another option you can try to modify the "Value" of the image to:

[e2pdf-format-output explode="?" output="{0}"]{field:1}[/e2pdf-format-output]

* {field:1} should be replaced with your field.

In this case, E2Pdf should try to get the image locally instead of a remote request, but it would work only if PDF generation is on the same server.
We would really appreciate your feedback at WordPress.org!
3 June, 2024 08:10:21
AirBelV2
Topics: 2
Messages: 11
I hope this message finds you well.

Following your advice, I modified the image value in my PDF settings to:
[e2pdf-format-output explode="?" output="{0}"]{field:1}[/e2pdf-format-output]
I replaced {field:1} with the appropriate field containing the image link. Unfortunately, the issue of the image appearing randomly still persists. The image does not consistently display on all pages and sometimes does not appear at all.
3 June, 2024 08:14:15
E2Pdf
Support
Topics: 7
Messages: 3345
Can you please enable "Debug" mode at "E2Pdf" -> "Settings", go to "E2Pdf" -> "Debug" and let us know the value to the full path to:

- "WP Folder"
- "Upload Folder"

P.S. You can mark the message as "Private", so only we can see the message.
We would really appreciate your feedback at WordPress.org!
3 June, 2024 09:54:23
AirBelV2
Topics: 2
Messages: 11
Thank you for your help, it works perfectly :) Your support is truly outstanding!
5 June, 2024 12:41:11
E2Pdf
Support
Topics: 7
Messages: 3345
Hello,

We checked and it's still working as expected. The last entry doesn't print images as it doesn't have the saved value with the image. Can you please re-check?
We would really appreciate your feedback at WordPress.org!
6 June, 2024 09:45:35
AirBelV2
Topics: 2
Messages: 11
On my side, it works randomly. For example, dataset 166 does contain an image, but when I open the PDF, it doesn't display...
6 June, 2024 09:57:23
E2Pdf
Support
Topics: 7
Messages: 3345
Hello,

166 entry had no image previously, now it has an image URL but it has a completely different URL. We currently modified your signature objects to make them work with both URLs, previous and the current ones. Check please if you still have issues.
We would really appreciate your feedback at WordPress.org!