Unable to open PDF/HTML/XML files directly in a browser in SharePoint 2010? The default configuration of SharePoint 2010 does not consider PDF documents safe for displaying in the browser. This script adds a new MIME type to the "AllowedInlineDownloadedMimeTypes" property list of the defined SharePoint.
Method 1
- Open the SharePoint Central Administration.

- Select "Application Management".
- Click on "Manage Web Applications".

- Select Particular Web Application .
- Got Ribbon and Select General Settings

- In the Browser File Handling section:

- Select "Permissive" and click "Ok".

- Clear the Browser Cache and open the PDF.

Method 2
Without changing the Web Application Settings (in other words Permissive and Strict).
This script adds a new MIME type to the "AllowedInlineDownloadedMimeTypes" property list of the defined SharePoint 2010 Web Application.
The script prompts you for the MIME type (for example application/pdf, text/html, text/xml) and Web Application URL.
The code shall run in the context of the Farm Administrators group member.
# <#
# .DESCRIPTION
#
# This script adds new MIME type to "AllowedInlineDownloadedMimeTypes" property list of defined SharePoint 2010 Web Application.
#
# Script prompts you for MIME type and Web Application URL.

Mayur KhatalePosted Jul 6, 2013, 1:11 PM
Just enabled the settings.
Jack OwensPosted Jun 21, 2013, 1:45 PM
Question: Do we need to have PDF reader installed on SharePoint server or just enabling this setting will be good enough?
Jack OwensPosted Jun 21, 2013, 1:44 PM
Crispier images above would have been appreciated to help readibility