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
SFDC coderSFDC coder 

Are images rendered in a pdf file?

I would like to know if there is any way to  render the images in a pdf file?

Thanks,
Neha
Sfdc CloudSfdc Cloud
HI Neha

Could u post your code,So i can check hows u r using image..
might be it can be halpful.Refer below link
http://salesforce.stackexchange.com/questions/32984/trouble-adding-image-to-visualforce-page-rendred-as-pdf
SFDC coderSFDC coder
hi,
  • This is my code that will be rendered as pdf...
  • When this page is rendered in pdf format,at that time all the fields of that record are rendered 
  • Now the error:On that record there's a formula field that displays an image wich is not getting rendered properly in my pdf file

<apex:page controller="DetailPageExt" >

<apex:detail subject="{!recordid}" relatedList="false" inlineEdit="false" />


</apex:page>


Thanks
Neha
Sfdc CloudSfdc Cloud
Hi Neha,
Where u r stored image which u r using in formula field.U need to check whether  images are stored on static resource or not.

Thanks
Aakaash NairAakaash Nair
Hi Neha,

Were you able to figure it out?

Reference static image resources through the $Resource is the best way.

Any other solution that you tried?

Thanks,
Aakaash
Neha@SfdcNeha@Sfdc
hi,

I cant use static resources bcause in my formula field m calling the google maps api(url) that just displays the map..and this map image i need to render in pdf
This is my formula field:

IMAGE("https://maps.googleapis.com/maps/api/staticmap?center=" + Street__c + ","+Society_Project__c+"," + City__c + "," + Country__c + "&zoom=13&size=600x300&markers=color:red|" + Society_Project__c +","+Street__c+","+City__c+","+Country__c+"&sensor=false", "No map available", 300,600) 

I don't hink we can store the images in static resources.Is there any other way out?



Regards,
Neha Patil