«

»

May
05

Opening PDFs in SharePoint 2010

If you have your nice SP2010 setup you may notice that when you go to open a PDF file it prompts you to save it rather than opening.

This is really annoying and would send everyone here at the school completely bananas! Not to mention the fact that we try to get everything on SharePoint only to force people to save it to their own area!

Never fear there is a solution. It’s in central admin.

Go there and click ‘Manage Web Applications’

Click on the web app you want to change, and go to ‘General Settings’

Scroll down the list until you reach ‘Browser File Handling’

Change the radio box from Strict to Permissive.

Click ok.

Go back to your PDF document and click on it – and it will open up without forcing you to save it somewhere first.

You may have noticed in the first screen shot there was no PDF icon. Well, follow this guide to right that wrong!

About Chris McKinley

Chris McKinley has written 26 post on this blog.


Technorati Tags: , , , ,

Related posts:

  1. Using PowerPoint 2010 themes in SharePoint 2010 In 6 Easy Steps Creating your own theme for SharePoint 2010 used to be...
  2. SharePoint 2010 Web Apps, Where’s the Save Button  I have been using SharePoint 2010 for quite a while...
  3. Migrating from SharePoint 2007 to SharePoint 2010 Last week the twitter community and blogosphere came alive with...
  4. Changes in SharePoint 2010 RTM Web Apps Previously I posted about where’s the save in the SharePoint...
  5. SharePoint 2010 Central Admin Map  One of the big improvements in SharePoint 2010 has to...
  6. SharePoint 2010 Powershell Commands Help Yesterday i did a post The first steps to SharePoint...

42 comments

6 pings

  1. Dries says:

    I’ve tried this solution, but nothing changes. When I try to open the PDF I still get the dialog to save the file. Opening in the browser doens’t work.

    Additionally I’ve installed the PDF iFilter…

    Do you have any idea on what the problem could be. Opening the PDF in FireFox or Safari works as expected…

    Thank yo ufor the feedback.

  2. Chris McKinley says:

    Thanks for the comment.
    I can only think that it may be the default programme settings on the local computer. Is the behaviour consistent across machines in your organisation? Also what version of IE, windows and Office are installed on the local machine?

  3. Arbab says:

    Same problem here, this solution does’nt work for me. I have IE8, FireFox 3.0, winxp sp2, and office 2007 locally. It occurs on other machines as wello

  4. BobS says:

    We too have gone through this and what we’ve noticed is that the only doc library affected by the “strict to permissive” change, when changing to permissive, is the home page library. All of the sub site and tertiary site librarys will prompt for read only/edit, but then prompt for a file save regardless of which is chosen. This only seems to happen in IE 8 – FireFox works perfectly.

    Any thoughts on this would be appreciated, and thank you for writing the article.

  5. Ronald van Vugt says:

    I have the same problem. What I notice is the following:

    -> if I deploy a new site from a saved templates, all document libraries from this new site has the PDF problem (only SAVE AS possible)
    -> If I remove one document library from the new site and recreate the document library, the PDF problem is solved

    It looks like it has something to do with deploying a new site from a template.

    Has anybody any idea?

    Best regards,
    Ronald van Vugt

  6. Kimberly says:

    I just want to say THANK YOU for making my life easier.. :-) When I did a search on this topic, I was lucky enough to find this one first. Nothing is EVER that easy and your directions were perfect!!

    Kimberly
    SP 2010 Newbie

  7. -Jerome says:

    Setting the web app browser file handling setting to permissive did fix the same issue for me. Thanks !

  8. Nicholas says:

    Hi,

    I am experiencing the same issue as detailed by Ronald va Vugt:

    I have sites created from site templates, and .msg and .pdf files are being prompted to save, not open or save, despite having the web apllication Brwoser File Handling set to Permissive. However, if i creaate a new document library in those sites, they respect the browser file handling setting of the web appliation.

    Can anyone suggest a solution to this so that all my existing site’s document libraries allow permissve file handling (i.e. allow open)?

    Thank you

  9. Ruedi says:

    Same Problem as Ronald van Vugt (Libraries crated from Site Template). Has anyone found a solution other then recreating the library?
    Thank you

  10. Sethu says:

    It worked..Opens the pdf in the brower

    Thanks

    Sethu

  11. steve fink says:

    THANKS! that worked. WTH Microsoft? As if people dont upload and view .pdf’s to document libraries to view?

    I found this solution while trying to resolve another issue though. I cannot get my PDF icons to display. I have gone to the 14 hive and added the icon to images and edited the icon .xml file. No typo’s or anything, still wont display the pdf icon and in the X / image properties, it does now know what file type it is anymore (yet opens in proper PDF app when clicked). Therefore cannot locate its icon.

  12. Ronald van Vugt says:

    Hello,

    I still was unable to solve my problem (see my comment on june 21). Has someone already found a solution?

    Best regards,
    Ronald van Vugt

  13. Kim says:

    Having the same issue as well. I also tried going onto the doc lib > Settings > Advanced settings > Opening Documents in Browser > Open in Client Application

    Still getting prompted to save. This is a huge issue for current & potential clients!

  14. Dave Coleman says:

    Do you still get prompted after following all the instructions?

  15. David Stokes says:

    The answer for this is here…sub sites that previously exist before doing this require you to set them explicitly using powershell:

    http://nerdtastictips.blogspot.com/2010/08/sp2010-forces-users-to-save-pdfs.html

  16. Shinyak says:

    It worked. Thank you very much for your infomation !!

    Shinya-K

  17. Renee Hansen says:

    I am having the same problem as Ronald Van Vugt.

    If I create a site from a template, and add a pdf to one of the libraries. They will not open… If I create a NEW document library on that same site, it works fine. I don’t want to have t creat the document libraries after I create the site. Did I miss the fix for this?? PLease help

  18. Justin says:

    Is there anyway to get the pdf to open in a new window?

  19. Dave Coleman says:

    Only by using SharePoint Designer and i believe i saw something on codeplex but that was all or nothing.

  20. Willie Buczkowski says:

    Many thanks for your excellent blog post! I found your post very interesting, you are a great author. I just bookmarked your blog and will come back in the future. I want to encourage you to continue the exciting job, have a great daytime!

  21. Dan says:

    Is it possible to get documents, which are currently located in a Sharepoint 2010 Document Library, to open in a new window?

    Also, is there a facility in Sharepoint 2010 for performing a Check-In for multiple documents, all at once? (it appears there are 3rd party products to do this, but should this not exist in Sharepoint 2010, at this stage)?

    It also appears that you can’t upload more than 100 documents, at any one time, to a Document Library, in Sharepoint 2010. Is this correct, or is there a way around it?

    regards,

    Dan

  22. Meera says:

    How can i set the document in a document library to open in a new browser window in sharepoint 2010. I have successfully done this in MOSS 2007 but when i try to use same steps in sharepoint 2010 its not working.

    Could any one please let me know what is the process to open a document in a document library to in a new browser window in sharepoint 2010

    Appreciate your help.

  23. Leif Hurst says:

    Works perfectly on Sharepoint 2010 Foundation!

    THANK YOU SO MUCH!

  24. Dave Coleman says:

    Thanks for the comment Leif and i am glad it helped

    Dave

  25. Paul says:

    I would caution tho, that the Strict setting is there for a reason. If you only want to fix the issue with PDF’s, then editing the docicon.xml entry for PDF and adding

    OpenControl=”SharePoint.OpenDocuments”

    if possibly a more secure fix for you.

    Paul

  26. Paul says:

    Sorry, got that the wrong way round, you need to set OpenControl=”" , thusREMOVING the SharePoint.OpenControl

    Paul

  27. Dave Coleman says:

    Thanks Paul if you ever fancy doing a follow up post on this and posting on this blog please let me know.

    Dave

  28. Jack Divah says:

    Hi Dave:

    Thank you for a helpful article. Do you think PdfForms at http://www.pdfsharepoint.com qualify for SharePoint 2010 and Pdf integration? I just consider ability to use Pdf forms (not only documents) is essential for full integration between both products.

    I know that Adobe Acrobat X allows some kind of integration with SharePoint. What is your opinion?

    Thanks,
    Jack D.

  29. Richard Willis says:

    Do NOT do this without a full understanding of the huge security hole you are opening in SharePoint. Maurice Prather has just blogged about the dangers of this at
    http://www.bluedoglimited.com/SharePointThoughts/ViewPost.aspx?ID=328

    The fact that you can embed Javascript in a pdf and the new client object model allows a malicious script in a document to do anything the user can, including deleting files. From that it seems to me that you should only allow the opening in the browser if you can complete control of the pdfs and the machine they are created on.

  30. Dmitry says:

    Hi:

    There is a better way to handle “Browser File Handle” issue. Take a look at my blog here: http://www.pdfsharepoint.com/sharepoint-2010-and-pdf-integration-series-part-1/

    Solution #2 addresses Pdf extension without exposing entire Web Application to “Permissive” browsing. Setting “Browsing File Handle” to “permissive” opens too many vulnerabilities with other file extensions.

    Thanks,

    Dmitry

  31. altaf says:

    I have created Shared document library and uploaded PDF files in it. when I am opening the PDF file its opening in the same browser. I want that PDF file should open in new window.

    please suggest me the solution.

  32. Joe says:

    Worked like a champ on 2010 – Thanks for sharing!

  33. DViktor says:

    Thanks a lot, it worked for me, without Powershell procedures as well. The solution is no secret; .PDF files will only open in browser as well, if Adobe is installed on the server that runs Sharepoint. I figured it out, by trying to open the .pdf files of the Sharepoint site, on my local machine.

  34. jatin says:

    thanks buddy
    thanks lot of…
    :)

  35. Tom D'Acquisto says:

    Thanks!!

  36. Max says:

    Thanks alot Chris!

    Initially thought that it was ie 8/9 issue. Lucky to find your post and save my day!

  37. Courtney says:

    Worked like a charm. Thanks so much.

  38. JB says:

    Thanks, great article!

    Here you find another sample to add a custom action to a ribbon bar. The sample adds a “Export to PDF” button to export SharePoint list data into a PDF document using a templating system:
    http://www.parago.de/2011/04/how-to-export-sharepoint-task-list-data-to-pdf-using-a-templating-system/

  39. Eddie says:

    Thanks! Our consultants upgraded our SP 2007 to 2010 last night and didn’t bother to turn this on (or at least let us know about this option), and were too slow in response getting back to us. This was perfect…thanks again!

    Eddie

  40. C. Marius says:

    Actually, to have the solution working you also have to enable the feature in Site Collection to “Open Documents in Client Applications by Default”

    Only when enabling these 2 options the feature will work fully as described.

    Hope it helps,
    C:\Marius

  41. Praveen says:

    Nice. I like the post.
    Here is what I posted: http://praveenbattula.blogspot.com/2011/12/open-pdf-files-directly-in-browser.html

  42. S. Briscoe says:

    Thanks this is just what I needed

  1. Tweets that mention Opening PDFs in SharePoint 2010 « Chris and Dave's SharePoint And Tech Blog -- Topsy.com says:

    [...] This post was mentioned on Twitter by Dux Raymond Sy, PMP, Planet SharePoint, Jeff DeVerter, SPSaturday_DC, Nicholas Hadlee and others. Nicholas Hadlee said: RT @meetdux: RT @jdeverter: RT @pl_sharepoint: Chris McKinley: Opening PDFs in #SharePoint 2010 http://bit.ly/bUk5oM :: Awesome! [...]

  2. Öffnen von PDFs im Browser in SharePoint 2010 Umgebungen « Sharepoint Infoblog says:

    [...] Source: Chris and Dave´s SharePoint And Tech Blog [...]

  3. SharePoint 2010 und PDF iFilter « SharePoint and relevant Technologies says:

    [...] sollte man diese hier beschriebene Einstellung vornehmen, ansonsten sind Benutzer Beschwerden [...]

  4. Happy Birthday SharePointEduTech.com - SharePointEduTech says:

    [...] 1)       Opening PDFs in SharePoint 2010 [...]

  5. Setup Guide for PDF iFilter in SharePoint 2010 - SharePointEduTech says:

    [...] may also wish to check out this post if every time you click on a PDF it only offers a save [...]

  6. Bookmarks for May 18th through June 16th | Savage Nomads says:

    [...] Opening PDFs in SharePoint 2010 – SharePointEduTech – If you have your nice SP2010 setup you may notice that when you go to open a PDF file it prompts you to save it rather than opening. [...]

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>