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
Nitin SehgalNitin Sehgal 

Need help in opening PDF file(stored as Files in salesforce) inside Lightning Component

We have a requirement to display the dynamically generated pdf files(Stored as Files and not attachment in salesforce) in a lightning component. We used iframe with the File download URL (communityname/sfc/servlet.shepherd/document/download/'+ContentVersionID) and also changed settings for PDF in “File Upload and Download Security” to “Execute in Browser”.

Everything works fine and we can see the PDF document in desktop systems but it display "This Content is blocked. Contact the site owner to fix the issue."on mobile/tablet browser or salesforce mobile app