04-28-2020 12:35 PM
04-28-2020 12:35 PM
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.
04-29-2020 10:23 AM
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 :)
04-29-2020 11:14 AM
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.
by rautchetan27 on May 25, 2020
by rautchetan27 on May 24, 2020
by rautchetan27 on May 23, 2020
by DC Padur on May 18, 2020
by Mark Kashman on May 12, 2020
by SPDev_Support on May 06, 2020