Hey there,
Please refer to our docs for details on how we recommend doing this https://docs.gravitypdf.com/v6/users/displaying-uploaded-images
Thanks, I figured it out. I overrided the field_fileupload display function.
What did you do to override the field_fileupload display function?
Well my solution is not a good example, but works for me for urgent practise.
I modified /src/helper/fields/field_fileupload.php From line 100.
Used instead.
However, beware if you have multi image files uploaded as this will cause the pdf size increased significantly.
This is not a perfect solution, as I have to stop updating. I am still looking for hooks to override from functions.php.
The gfpdf_pdf_field_content hook is what you would use to change the mark-up for most fields that are displayed in Core or Universal PDF Templates.
Thanks for this, I will have a try later.
Cheers