2

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 Aug 10 '17 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 Aug 10 '17 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 Aug 10 '17 at 12:48
  • As mentioned before, downloading the images and storing them as static resource is best possible option you have. – Raghu Aug 14 '17 at 14:02
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.