Gino Abraham's Blog

July 2012 Entries

Making PDF open in same Browser(Sharepoint)

By default Sharepoint will not open pdf file in browser, rather it will force the user to save the pdf file and open. This is becuase pdf file by default is not a supported mime type.

You can change the setting for a specific web application using the following powershell.

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