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 inluded, pr default. The reason is client object model. PDF allows for Javascript execution, and though to some degree the threath model is the same as with SP2007, CLient object model makes it alot easier to create potential malicious code in PDF's. After considering the possible dangers you Could enable permissiv mode, but that works for all file types. Instead it is much less of a security hole to just enable pdf as allowed inline mime types for the web application:
Read a thorough post of he potential dangers here. |
|||
|
|
|
This change was made due to security reasons in SharePoint 2010. You know that PDF actually stands for "Potentially Dangerous Files". You can change it to a less secure mode, per Web Application, in Central Admin. Just change the Browser File Handling property to Permissive and your good to go. |
|||||||||||
|
|
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. |
|||
|
|
You could set the web application browser file handling setting to strict. This means that SharePoint will force the browser to download the file, instead of opening it in the browser itself.
|
|||
|
|
|
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 |
|||
|
|
