Which then opens a separate tab (currently a local development instance of our Web App), and using a combination of Query Parameters & Sharepoint Online APIs to retrieve/save documents:Īny advice on how to overwrite the default Open behavior would be greatly appreciated. The other integration that we have achieved is by adding a contextual menu option for PDFs like so: The requirement is to instead to be redirected to the Sharepoint Page I created and where the WebViewer JavaScript library is instantiated:Īlternatively, we could also accept an Externally Hosted Web App being opened. To be clear, here is the current default behavior in Sharepoint Online:Ĭlicking on PDFTRON_about.pdf opens Sharepoint Online's default PDF viewer: However, one of the questions that has come up is if we could overwrite Sharepoint Online's default behavior when clicking on the name of a PDF document. ![]() ![]() I have been successful in integrating PDFTron's JavaScript WebViewer library as part of my Sharepoint Online deployment by following the instructions provided here:
0 Comments
Leave a Reply. |