function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
harshasfdcharshasfdc 

image breaking in attachment when showing in pdf

Hi All,

 

 

I am generating a pdf   for contact  for this i have created vf page and i need to show up the images from attachments every thing is working fine but image break simbol is appearing if their is no image assoiated with the record in attachments .so how can i resolwve this issue

 

 

Thanks,

Harsha

Satish_SFDCSatish_SFDC
You can have a generic image in the pdf for all such contacts which do not have an image.
While you are trying to get the image and there is no image, you can load another generic one, which can be a Static Resource.

Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.

Regards,
Satish Kumar