ChronoEngine.com homepage

Forums

Generate PDFs with uploaded image

G
Giannessi posted Sep 17, 2023 at 23:47
Hi all, I'm testing my module with chronoforms 8. I need to generate a PDF that, in a special field, displays the image uploaded by the user.

I use the syntax {data:upoad}, however I only see the file name but not the image.

Does anyone know how to do this?

Thank you.
Cristiano
Max_admin posted Sep 18, 2023 at 20:42
Hi,

You need to use HTML, and use an <img tag:
<img src="http://www.domain.com/path/to/image.png" width="100" height="100" />
Max
ChronoForms developer...
ChronoForms v8 is out, do you have any suggestions? please let us know.
G
Giannessi posted Sep 18, 2023 at 21:13
Thanks Max.

The image, however, is not static but dynamic, so the name changes with each upload. How can I do this?

C.
R
rbock posted Sep 19, 2023 at 18:21
<img src="/path/to/image/{data:YOURIMAGEUPLOAD}" width="100" height="100" />
Max_admin posted Sep 19, 2023 at 21:13
as rbock showed, you need to build the source attribute using the form shortcodes like {data:something} or the {var:xxx} in case you are using an uploaded image, you can find this info when you enable the form debug, it will be shown in the debug report after the form is submitted
Max
ChronoForms developer...
ChronoForms v8 is out, do you have any suggestions? please let us know.
You need to login to be able to post a reply.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com