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 -
/sfc/servlet.shepherd/version/download/<VERSION>OR by ContentDocument Id -
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
?rendition=can be SVGZ or THUMB120BY90 or THUMB240BY180 or THUMB720BY480
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?