I have recently installed a software on my computer in which I am facing a problem regarding SharePoint foundation 2010 open PDF. It is unable to open any PDF documents , when I try to open the document by clicking on it, the document appears to attempt open, but nothing happens. So far I have downloaded the new version of adobe reader and tried to open the document but still it in not showing any option to open the document.
Trouble related to the Sharepoint foundation 2010 open PDF
Hi Chester,
This is common problem which several others have been facing too. There's nothing wrong the version of adobe reader.
The problem lies elsewhere, this issue started with SharePoint 2010, its an intended feature and not a bug. Its due to SharePoint 2010 's mechanism of handling files being downloaded. SharePoint does not consider PDF's to be safe and thus it does not allow opening a PDF in the browser.
Several fixes and approaches are available which can help relax this behavior –
-
Approach 1 – It involves changing a setting so Strict to Permissive so that.
-
Navigate to SharePoint 2010 Central Administration > Application Management > Manage Web Applications.
-
Click General Settings available for your web application.
-
Scroll down to Browser File Handling and choose Permissive.
-
Save your changes by clicking Ok.
-
Try opening a PDF and it should now open in the browser.
-
Approach 2 – While approach 1 solves the problem, it does so by slightly increasing the risks because with the setting change all documents can now open in the browser. So there exists a better and safer method which requires minor programming via PowerShell.
-
Revert the setting change made in Approach 1 by setting Browser File Handling to Strict.
-
get into the PowerShell and execute one by one the commands given below
-
$webapp = Get-SPWebApplication <this will get your web URL>
-
$webapp.AllowedInlineDownloadedMimeTypes.Add("application/pdf")
-
This change will now allow PDFs to open in the browser, so try opening one and see if it opens.
Either of the approaches will definitely fix the issue, however, I would suggest taking Approach 2 route.