In SharePoint 2007, clicking on a PDF in a document library would open it within the browser. In SharePoint 2010, doing the same asks me to save the PDF. How can I force SharePoint 2010 to just open PDF files without making me save them?
Bad advice! You should not just blindly enable permissive mode.
First of all, there are good reasons why SP2010 does not render files in browser, PDF included, per default. The reason is client object model.
After considering the possible dangers, you could enable permissive mode, but that would mean that all file types would b enabled. Instead, it is much less of a security hole to just enable pdf as an allowed inline mime type for the web application:
$webapp = Get-SPWebApplication <your webapp url> $webapp.AllowedInlineDownloadedMimeTypes.Add(“application/pdf”) $webapp.Update()
Read a thorough post of the potential dangers here.
This is controlled by the installation of Acrobat itself, not SharePoint. By default, PDFs open in the browser but many corporate installs force it to open in a separate window for support reasons.
Many users do not realize they are viewing a PDF instead of a web page and get confused when the normal web tools do not work properly. The bigger the corporation, the more likely this is to be the default.
I agree with Anders Rask that the solution provided by Wictor is not the best solution. Making it permissive at the Web Application level is the last thing to do.
If you want to set permissive, it can be done at the Site Collection, Site and List level too. This will reduce the risk to a targeted area. But note here that setting to permissive will allow other files to run in browser like flash etc.
if you just want to allow pdf, then Anders's solution is good.
For all the ways you can allow pdf to open in browser.. refer http://howtosharepoint.blogspot.com/2011/04/open-pdf-files-in-browser.html
For us this was fixed by editing the DOCICON.xml file located here on your WFE server:
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML
You need to Change the value for PDFs. Our value was originally set to this:
Mapping Key="pdf" Value="pdficon_small.png" OpenControl="AdobeAcrobat.OpenDocuments"/
We modified the OpenControl to "" so it reads like this:
Mapping Key="pdf" Value="pdficon_small.png" OpenControl=""/
Then do an IIS reset. Now the PDFs open directly into your browser without prompting you!