Share via

can not open pdf file in sharepoint 2013

Leili vazietan 106 Reputation points
Apr 4, 2021, 12:23 PM

hi

when i want to open pdf file in sharepoint 2013 i have this error :
HTTP Error 503. The service is unavailable.

I tested with all browsers . also I only have a problem with the PDF file (word , excel is ok).. I can download it but I can not open it when I click on it

pls hepl me
It's very important to me

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,118 questions
{count} vote

Accepted answer
  1. Echo Du_MSFT 17,216 Reputation points
    Apr 5, 2021, 7:40 AM

    Hi @Leili vazietan ,

    Thanks for your reply.

    Please following steps:

    1.Start Internet Information Services (IIS) Manager

    2.Expand the server node

    3.Click on Application Pools

    4.The central pane is now populated with a list of application pools with a column for the 'status'. Identify any SharePoint application pools that are not running (that should be).

    84393-1.png

    5.Select the 'stopped' application pool and click the Start button from the Actions panel.

    84359-2.png

    Thanks,
    Echo Du

    =====================
    Updated Answer ===================

    Hi @Leili vazietan ,

    I re-studied your problem, as far as I understand you can only download PDF files and cannot view PDF files directly in the browser.

    Please perform the following troubleshooting:

    1.Check if the PDF is added to the web application’s trusted MIME Type List.

    Run the below command as an admin:

    Add-PSSnapin Microsoft.Sharepoint.Powershell  
    $webApplication = Get-SPWebApplication("web_application_url")  
    $webApplication.AllowedInlineDownloadedMimeTypes  
    

    84687-1.png

    If application/pdf is not present in the list, it means that PDF is not added to trusted MIME types of the web application. Let’s add application/pdf to the trusted MIME Types List by running the below command.

    $webApplication = Get-SPWebApplication("web_application_url")  
    $webApplication.AllowedInlineDownloadedMimeTypes.Add("application/pdf")  
    $webApplication.Update()  
    

    2.Update the settings in the Web Application level

    Open SharePoint Central Administration >> Manage web applications >> select the web application url and click on General Settings Drop-down menu, select General Settings >>
    from General Settings page, change the browser handling option from ‘Strict’ to ‘Permissive’.

    3.Update the settings in the Library level

    Open Document Library >> Library Settings >> Advanced settings >> select the radio button "Open in the browser".

    84578-4.png

    4.Check all application pools are started

    84655-5.png

    5.View SharePoint ULS logs to get detailed information

    Note: In IE, you need click on Open. In Chrome, you can click PDF files directly to view it.

    84648-6.png

    Thanks,
    Echo Du

    ===============

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Leili vazietan 106 Reputation points
    Apr 5, 2021, 10:37 AM

    hi

    Thanks for your help, but everything on the site works properly. I only encounter this error to open the PDF file (PDF files uploaded to the site give this error when I open it, but they can be downloaded without any problems

    i checked the application pool ans was started

    pls help me


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.