SharePoint 2019 On Prem Browser PDF

Stacey McBeth 1 Reputation point
2020-08-12T17:21:36.71+00:00

How do I open pdf in the browser without using "WordPDF". I have SharePoint 2019 on Prem. I have tried changing every SPWOPIBinding to make this happen, but nothing works. I also tried the following..

  • In Central Admin, I change the Browser File Handle to Permissive.
  • On my pc I changed the default for PDF's to open via Edge.
  • When The library default is set to Open in the Client Application, the PDF file is downloaded. (I want the file to open in browser)
  • When the library default is set to Open in the browser the PDF opens in Word Online.

This is working fine when using browser IE, but I believe this is due to the Add-on in ID; Adobe Acrobat SharePoint OpenDocuments Component.

This also works fine in 2016 using Edge, Chrome or IE.
I prefer my users use Edge or Chrome.

I want SP 2019 to show the PDF like it does in SP2016
Please see attachments
17198-sp20192016.png

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,763 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Echo Du_MSFT 17,116 Reputation points
    2020-08-13T10:01:22.117+00:00

    Follow these steps:

    1.Remove the binding by executing the following PowerShell command:

      Get-SPWOPIBinding –Application "WordPDF" | Remove-SPWOPIBinding -Confirm:$false   
    

    2.Add PDF to the web application’s trusted MIME Type List
    open the SharePoint Management Shell as administrator, and then run PowerShell commands:

    $webApplication = Get-SPWebApplication("http://sp/")  ## web application URL  
    $webApplication.AllowedInlineDownloadedMimeTypes.Add("application/pdf")  
    $webApplication.Update()   
    

    You could check whether the PDF has been added successfully through the $webApplication.AllowedInlineDownloadedMimeTypes PowerShell.

    17409-2.jpg

    0 comments No comments

  2. Stacey McBeth 1 Reputation point
    2020-08-13T15:21:16.29+00:00

    I did all you listed above.
    I removed the binding, the files download, will not open in PDF Viewer
    I add the binding and the pdf's show in word.
    I found this article..
    https://learn.microsoft.com/en-us/sharepoint/what-s-new/what-s-deprecated-or-removed-from-sharepoint-server-2019#pdf-viewer-sharepoint-server-2019-preview

    PDF Viewer (SharePoint Server 2019 Preview)
    SharePoint Server 2019 Preview included a built-in PDF viewer which allowed SharePoint to render PDF documents. This feature was removed from the RTM release of SharePoint Server 2019. Customers can instead use the native PDF rendering capabilities available in most web browsers and client devices.

    0 comments No comments

  3. Echo Du_MSFT 17,116 Reputation points
    2020-08-14T10:36:06.07+00:00

    By design, IE does not support view PDF directly. It is recommended that you try to use other browsers such as Chrome for testing.

    If the same issue occurs in other browsers, I suggest you to check whether PDF application is supported by SharePoint Web application.
    Open the SharePoint Management Shell as administrator, and then run PowerShell commands:

    $webApplication = Get-SPWebApplication("http://sp/")  ## web application URL  
    $webApplication.AllowedInlineDownloadedMimeTypes  
    

    17669-3.jpg

    ----------

    PS:You can directly click “Comment” option under ”My Answered“ to put forward your opinions and thoughts about solution that I propose.
    17637-4.png

    0 comments No comments

  4. Auke Bergsma 1 Reputation point
    2021-05-25T19:45:51.17+00:00

    Changing the pdf rule in the docicon.xml on the SharePoint server works fine in SharePoint 2016 so I think it will also work in SP2019. I will give it a try on a testenvironment of one of our customers. Or did you already found another solution?

    0 comments No comments