Skip to main content

When I view a file uploaded to ContentDocument in Salesforce with a shared link, I see a download button.

I would like to hide this.

 

I found that the following URL format does not show the download button, but it is not suitable for multi-page PDF files, perhaps because it is displayed as an image.

For example, even if a PDF file has 5 pages, only one page will be displayed when displayed in this URL format.

 

【URL】

https://xxxxxxx.file.force.com/sfc/servlet.shepherd/version/renditionDownload?rendition=ORIGINAL_Png&versionId=068xxxxxxxxxxxxxx& operationContext=CHATTER&contentId=05Txxxxxxxxxxxxxxx

 

Is there a URL format that displays multi-page PDF files but does not display a download button?

 

Tip: The file URLs are displayed in an iframe on the Experience Cloud site.

I want to hide the download button on the file sharing link.

2 answers
Loading
0/9000