The images are displayed randomly.

Gravity Forms
June 03, 2024 06:53:09
AirBelV2
Topics: 5
Messages: 19
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.
June 03, 2024 07:26:34
E2Pdf
Topics: 7
Messages: 3614
Support
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!
June 03, 2024 08:10:21
AirBelV2
Topics: 5
Messages: 19
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.
June 03, 2024 08:14:15
E2Pdf
Topics: 7
Messages: 3614
Support
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!
June 03, 2024 09:54:23
AirBelV2
Topics: 5
Messages: 19
Thank you for your help, it works perfectly :) Your support is truly outstanding!
June 05, 2024 12:41:11
E2Pdf
Topics: 7
Messages: 3614
Support
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!
June 06, 2024 09:45:35
AirBelV2
Topics: 5
Messages: 19
On my side, it works randomly. For example, dataset 166 does contain an image, but when I open the PDF, it doesn't display...
June 06, 2024 09:57:23
E2Pdf
Topics: 7
Messages: 3614
Support
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!
Get News and Updates
Our monthly newsletter keeps you in the loop, so you'll always be up to date with the latest news and updates about E2Pdf.
* You can update your email subscription preferences here.
All trademarks, service marks, trade names, product names, and logos appearing on this website are the property of their respective owners. The use of trademarks such as Formidable Forms®, Forminator Forms®, Gravity Forms®, JetFormBuilder®, WordPress®, WooCommerce®, WPForms® and others is solely for identification purposes (nominative use) and does not imply any affiliation, sponsorship, or endorsement by the respective trademark holders.
© 2017 - 2026, https://e2pdf.com

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. By clicking "Accept Selected", you consent to use of selected cookies according to our Cookie Policy.