Forum Discussion
John Twohig
Apr 28, 2020Iron Contributor
Open pdf in Browser not SharePoint pdf Viewer
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 S...
EIverson
Jan 27, 2022Copper Contributor
John Twohig jm_herard LeeUnderwood NanetteDV KDRUIS
Not a fix but more a workaround. The issue is specific to the QuickLink web part. For PDFs it adds a ?web=1 to the end of the address forcing the PDF to open in the SharePoint PDF viewer. I thought the solution may be to use #page=1 to force it to open in the browser, but the web modifier it adds overrides the page modifier.
My solution, was to load the address (https://organization.sharepoint.com/sites/SiteName/LibraryName/Portable%20Document%20Format.pdf) into a URL shortener like bit.ly or tinyurl.com then use the generated link (https://bit.ly/[whatever]) in the QuickLink web part. That worked for me.
Darren Graham
Jan 28, 2022Copper Contributor
Thats a great workaround especially for the Quicklinks webpart.
A more useful application for us on Modern Pages would be to use the Highlighted Content webpart to pull through from our mass library the documents which meet certain criteria and this could be list of several pdf files. Opening pdfs from highlighted content also open in the sharepoint pdf viewer rather than full in browser mode. The 2 main issues we have with the sharepoint viewer is the top banner providing version history. We don't want our employees being able to access previous versions of documents for fear of misuse (ISO 9001 document control) and secondly the display can be small. Full browser mode A4 pages open up full width, sharepoint mode we need to zoom in a bit.
There is one solution I see here and that is a simple toggle setting in the library settings for how pdfs should open by default and it doesnt matter if its a quicklinks webpart, highlighted content, image webpart sharepoint knows its a pdf and will open the document in one default mode for that library.
A more useful application for us on Modern Pages would be to use the Highlighted Content webpart to pull through from our mass library the documents which meet certain criteria and this could be list of several pdf files. Opening pdfs from highlighted content also open in the sharepoint pdf viewer rather than full in browser mode. The 2 main issues we have with the sharepoint viewer is the top banner providing version history. We don't want our employees being able to access previous versions of documents for fear of misuse (ISO 9001 document control) and secondly the display can be small. Full browser mode A4 pages open up full width, sharepoint mode we need to zoom in a bit.
There is one solution I see here and that is a simple toggle setting in the library settings for how pdfs should open by default and it doesnt matter if its a quicklinks webpart, highlighted content, image webpart sharepoint knows its a pdf and will open the document in one default mode for that library.