lundi 23 février 2015

open pdf in browser sharepoint 2013



I have a library of pdf file, I need to open those file in browser and not to download them. I tried to set permission to web application using those steps :


http://ift.tt/1a4bPyB



Web Application level setting: Method 1 (UI)

• Go to SharePoint 2010 Central Administration > Application Management > Manage Web Applications
• Select the row of your web application
• Click General Settings in the ribbon
• Scroll down to Browser File Handling and select Permissive
• Click Ok


and this :



$webApp = Get-SPWebApplication("http://webAppUrl") $webApp.AllowedInlineDownloadedMimeTypes.Add("application/pdf")


$webApp.Update() But it dosent work.


So I tried to 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!


But also it dosent works. Any idea how can I activate this .


enter link description here








0 commentaires:

Enregistrer un commentaire