I spend hours to find a way to control download behavior of pdf-files (when to download and when to show inline) and did not find anything.
What I got so far:
the main thing that do all files magic is
We can download file by:
- ContentVersion Id –
- ContentDocument Id –
- Zip archive by Ids separated by slash –
/sfc/servlet.shepherd/version/download/<VERSION 1>/<VERSION 2>?
For some reason in salesforce download links we can find the following parameter
operationContext=CHATER, which seems do nothing
Also servlet.shepherd can show preview image of pdf
All these options are not covered by official documentation and I feel there could be much more features. Does anybody know other options? Is there any documentation explaining all possible options?
Added option with multiple files download as a zip provided by @cropredy
Looks like there are some changes recently. I am seeing below pattern with API version 48
For authenticated users
ID in the URL being content document ID.