1.You could check if the PDF is added to the web application’s trusted MIME Type List by running following command as an admin:
Add-PSSnapin Microsoft.Sharepoint.Powershell $webApplication = Get-SPWebApplication("web_application_url") $webApplication.AllowedInlineDownloadedMimeTypes
If application/pdf is not present in the list, it means that PDF is not added to trusted MIME types of the web application. Let’s add application/pdf to the trusted MIME Types List by running the below command.
$webApplication = Get-SPWebApplication("web_application_url") $webApplication.AllowedInlineDownloadedMimeTypes.Add("application/pdf") $webApplication.Update()
- Open SharePoint Central Administration >> Manage web applications >> select the web application url and click on General Settings Drop-down menu, select General Settings >>
from General Settings page, change the browser handling option from ‘Strict’ to ‘Permissive’.
- Open Document Library >> Library Settings >> Advanced settings >> select the radio button "Open in the browser".
- Check all application pools are started
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.