In sharepoint2010, you need to open the PDF file in the browser by default, instead of downloading it and opening it again. The client has installed the PDF plug-in.
1. Choose sharepoint2010 Management Center-ApplicationProgramSettings-General processing-Browser file handler (Browserfilehandling), Set to allow (Permissive), No header is added, allowing non-office documents to be opened directly.
The result is no problem on the first site. Some sub-sites can only be downloaded.
2. In the homepage website set function, disable "Open Document in client application by default"
After setting, it cannot be opened in the browser. The trail finds that the following header still exists. Normally, the following header does not exist.
Content-Disposition: attachment; filename = XXXXX. PDF
X-download-options: noopen
So I found the solution at http://www.pdfsharepoint.com/?point-2010-and-pdf-integration-series-part-1,No need to change the above settings
1 $ Webapp = Get-spwebapplication http: // localhost
2 If ( $ Webapp . Allowedinlinedownloadedmimetypes -Notcontains " Application/PDF " )
3 {
4 Write-host-foregroundcolor white " Adding pdf mime type... "
5 $ Webapp . Allowedinlinedownloadedmimetypes. Add ( " Application/PDF " )
6 $ Webapp . Update ()
7 Write-host-foregroundcolor white " Added and saved. "
8 } Else {
9 Write-host-foregroundcolor white " Pdf mime type is already added. "
10 }
Postscript:
Description in msdn: this property is ignored whenBrowserfilehandlingProperty is setPermissive.
ApplicationBrowserfilehandling is setPermissiveThe attribute settings of allowedinlinedownloadedmimetypes will be ignored,
The test result is not true. I don't know if there is a bug in sharepoint2010. I just played SP1: D.