Skip to main content

Hy,    I wanted to cteate an embeded pdf viewer based on an external pdf url.   But i get  refused to connect.   I already added the url inside the trusted urls settings but does not seem to fix the issue.   An other approach i tried is with https://docs.google.com/viewer?url= but that is not reliable, sometimes it is showing the pdf and when refreshing the page it doesn't.  Can someone give me a direction how to get the pdf visible inside an iframe?  thanks,    

@* Salesforce Developers * 

3 answers
  1. Oct 16, 2025, 9:38 PM

    Hi @katleen vander waeren

     

     

    Other Option  — If the PDF you’re trying to display is owned by  your organization, store pdf in Salesforce Files  and use the standard preview (NavigationMixin.Navigate) or link to /sfc/servlet.shepherd/document/download/<ContentDocumentId> .