Home

Open pdf in Browser not SharePoint pdf Viewer

%3CLINGO-SUB%20id%3D%22lingo-sub-1345135%22%20slang%3D%22en-US%22%3EOpen%20pdf%20in%20Browser%20not%20SharePoint%20pdf%20Viewer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1345135%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20I%20click%20on%20a%20pdf%20file%20either%20in%20search%20results%20or%20the%20document%20library%20web%20part%20the%20file%20opens%20in%20the%20web%20browser.%20When%20I%20put%20a%20link%20to%20the%20same%20file%20in%20an%20image%20web%20part%20the%20file%20opens%20in%20the%20SharePoint%20pdf%20viewer.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20change%20the%20default%20or%20disable%20the%20SharePoint%20pdf%20viewer%20so%20that%20clicking%20on%20a%20link%20to%20a%20pdf%20will%20always%20open%20in%20the%20web%20browser%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20normally%20wouldn't%20make%20a%20difference%20but%20there%20appears%20to%20be%20a%20bug%20in%20the%20SharePoint%20pdf%20viewer%20that%20doesn't%20recognize%20all%20hyperlinks.%20They%20show%20in%20blue%20but%20there%20is%20no%20link.%20We%20have%20a%20pdf%20with%20many%20hyperlinks%20to%20other%20documents%20on%20the%20SharePoint%20site.%20When%20the%20pdf%20is%20opened%20in%20a%20web%20browser%20all%20the%20hyperlinks%20work%20correctly.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20anyone%20is%20curious%20how%20to%20make%20the%20hyperlinks%20fail%20in%20the%20SharePoint%20viewer%20here%20is%20what%20we%20did.%20We%20created%20a%20Word%20document%20and%20set%20the%20hyperlink%20base%20to%20be%20a%20SharePoint%20Document%20Library.%20In%20the%20document%20there%20are%20various%20hyperlinks%20-%20some%20to%20external%20sites%20and%20some%20to%20filenames%20in%20the%20Document%20Library.%20The%20Word%20document%20was%20saved%20as%20a%20pdf.%20The%20pdf%20was%20opened%20in%20Adobe%20reader%20and%20all%20the%20links%20-%20both%20external%20and%20SharePoint%20worked.%20We%20uploaded%20the%20pdf%20to%20SharePoint.%20If%20the%20file%20is%20opened%20in%20the%20web%20browser%20all%20hyperlinks%20work.%20If%20it%20is%20opened%20using%20the%20SharePoint%20pdf%20viewer%20only%20the%20external%20links%20work.%20The%20links%20to%20files%20in%20the%20Document%20Library%20don't.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20we%20could%20just%20get%20rid%20of%20the%20SharePoint%20pdf%20viewer%20everything%20would%20work%20fine%20since%20everyone's%20web%20browsers%20can%20view%20pdf%20files.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1345135%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESites%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1347600%22%20slang%3D%22en-US%22%3ERe%3A%20Open%20pdf%20in%20Browser%20not%20SharePoint%20pdf%20Viewer%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1347600%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F4770%22%20target%3D%22_blank%22%3E%40John%20Twohig%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EFor%20security%20reasons%2C%20SharePoint%20prefers%20to%20open%20PDF%20files%2C%20especially%20with%20a%20hyperlink%20through%20SharePoint%20PDF%20viewer.%20Syncing%20the%20Document%20Library%20and%20open%20the%20PDF%20file%20from%20the%20computer%20may%20resolve%20this.%3C%2FP%3E%3CP%3EI%20know%20it's%20bothering%20many%20users%20but%20SharePoint%20trying%20to%20keep%20the%20environment%20safe.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20resolve%20the%20issue%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

When I click on a pdf file either in search results or the document library web part the file opens in the web browser. When I put a link to the same file in an image web part the file opens in the SharePoint pdf viewer. 

 

Is there a way to change the default or disable the SharePoint pdf viewer so that clicking on a link to a pdf will always open in the web browser?

 

It normally wouldn't make a difference but there appears to be a bug in the SharePoint pdf viewer that doesn't recognize all hyperlinks. They show in blue but there is no link. We have a pdf with many hyperlinks to other documents on the SharePoint site. When the pdf is opened in a web browser all the hyperlinks work correctly.

 

If anyone is curious how to make the hyperlinks fail in the SharePoint viewer here is what we did. We created a Word document and set the hyperlink base to be a SharePoint Document Library. In the document there are various hyperlinks - some to external sites and some to filenames in the Document Library. The Word document was saved as a pdf. The pdf was opened in Adobe reader and all the links - both external and SharePoint worked. We uploaded the pdf to SharePoint. If the file is opened in the web browser all hyperlinks work. If it is opened using the SharePoint pdf viewer only the external links work. The links to files in the Document Library don't. 

 

If we could just get rid of the SharePoint pdf viewer everything would work fine since everyone's web browsers can view pdf files.

2 Replies
Highlighted

@John Twohig 

Hello,

For security reasons, SharePoint prefers to open PDF files, especially with a hyperlink through SharePoint PDF viewer. Syncing the Document Library and open the PDF file from the computer may resolve this.

I know it's bothering many users but SharePoint trying to keep the environment safe.

 

Hope this resolve the issue :)

 

Highlighted

@Alireza Rahimifarid 

 

No. That can't be true. Otherwise, they would not allow the Open in Browser option at all and it wouldn't be the normal behavior when clicking on a pdf from search results or from the Document Library Web Part.