1

I'm having issues where pdf files added to a document library are opening up in Word Online instead of just the browser. Is there a way to set it up where .pdf files open in the browser and word documents to open in Word Online?

I am using SharePoint 2019 on-premise

I've added the pdf to the Mime Types using the PowerShell script below but the .pdf documents are still opening in word online.

$webApplication = Get-SPWebApplication("webapp URL")
$webApplication.AllowedInlineDownloadedMimeTypes.Add("application/pdf")
$webApplication.Update()

1 Answer 1

3

You can suppress the WOPI binding using New-SPWopiSuppressionSetting.

This will open the PDF in the method the browser is able to handle it, i.e. with non-IE browsers it will open with the browsers PDF handler. For IE when Acrobat is installed with it's ActiveX control, it should open in Acrobat.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.