PDF Generation: Error in including images to HTML Template

Posted by nicolo.ilano on 04-Dec-2015 00:58

Good day!

I would like to ask if anyone there can help me with my problem in generating PDFs. I created a Document Template for PDF in HTML format and set "Create Template Document" trigger to save the PDF in a "File Upload Type Field". It is generating the text inside the PDF but failed to load the images.

e.g.

{!logo#html}

Please help. Thanks in advance!

Posted by Pradeep Kagithalagudem on 22-Dec-2015 04:38

Hi,

Can you try using loop like below snippet to render image. Loop is needed in case the related objects cardinality is multiple (like One to Many(Related Object) or Many to Many(related object)).

{!#LOOP_BEGIN.R65168941(1)}

{!R65168941.Test_Image_Upload}

{!R65168941.Test_Image_Upload#html}

{!R65168941.Test_Image_Upload#url}

{!#LOOP_END.R65168941}

Thanks and Regards

Pradeep

All Replies

Posted by Mani Kumar on 04-Dec-2015 01:29

Hello,

Do you upload only images to this field? If yes, can you please try using the image upload field instead and use the same token or as below:

{!Imglogo#url}

or

{!Imglogo#html}

Below is the SS of what I tried. Please do correct me if I understood your requirement incorrectly.

Regards,

Mani.

Posted by nicolo.ilano on 04-Dec-2015 01:50

Yes I only upload images to the field (actually it is a field in a related Object), and Yes I have done those token too. But the thing is, I use it for PDF.

Posted by Mani Kumar on 14-Dec-2015 07:01

I've tested this with related objects and can now confirm you that this is a Bug.

Logged defect # 29050 and will be  addressed in future releases.

- Mani.

Posted by Pradeep Kagithalagudem on 22-Dec-2015 04:38

Hi,

Can you try using loop like below snippet to render image. Loop is needed in case the related objects cardinality is multiple (like One to Many(Related Object) or Many to Many(related object)).

{!#LOOP_BEGIN.R65168941(1)}

{!R65168941.Test_Image_Upload}

{!R65168941.Test_Image_Upload#html}

{!R65168941.Test_Image_Upload#url}

{!#LOOP_END.R65168941}

Thanks and Regards

Pradeep

This thread is closed