I would like to view trusted PDF or HTML files directly in browser without downloading them.

Is there a way to activate browser view from any PnP library (SharePointPnPPowerShell say)? The examples I came across (How do I prevent Sharepoint from asking to download html files to my local machine? or Adding PDF and other MIME Types to the Browser File Handling property ) use SPWebApplication.AllowedInlineDownloadedMimeTypes Property from SharePoint Client Components SDK, I guess.

Is there a simpler way to do it?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.