Forums

Generate PDFs with uploaded image

Giannessi 17 Sep, 2023
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 18 Sep, 2023
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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Giannessi 18 Sep, 2023
Thanks Max.

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

C.
rbock 19 Sep, 2023
<img src="/path/to/image/{data:YOURIMAGEUPLOAD}" width="100" height="100" />
Max_admin 19 Sep, 2023
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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
You need to login to be able to post a reply.