I need to show google drive bulk images in VF PDF file. currently am getting broken image. that image url saved in salesforce and remote site settings.

how can i get that real image in vf pdf file.

  • Have you tried static resource ?
    – Nihar
    Commented Aug 10, 2017 at 12:29
  • Thanks for your answer but if one image means i will upload in static resource. i am uploading number of images in google drive and getting the google drive image url and saving in salesforce database. i am calling that url in visualforce pdf page. its showng broken image.
    – Sfdcprgmr
    Commented Aug 10, 2017 at 12:33
  • i suggest you to use visualforce component in your visualforce page PDF. developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/…
    – Nihar
    Commented Aug 10, 2017 at 12:48
  • As mentioned before, downloading the images and storing them as static resource is best possible option you have.
    – Raghu
    Commented Aug 14, 2017 at 14:02

1 Answer 1


See Visualforce PDF Rendering Considerations and Limitations where it says:

  • PDF rendering doesn’t support images encoded in the data: URI scheme format.

You'll need to download the images and store them as static resources.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .