Forum Discussion

atwork321's avatar
atwork321
Copper Contributor
Jan 15, 2024
Solved

Open 'webUrl' to PDF file in Browser with Adobe Document Cloud instead of downloading it.

The graph API gives me a "webUrl" for each file.

 

For PDF files it's something like

https://[sharepointsite]-my.sharepoint.com/personal/[name_company]/Documents/[Folder]/Test/Testdokument.pdf

 

And for Word files it's something like

https://[sharepointsite]-my.sharepoint.com/personal/[name_company]/_layouts/15/Doc.aspx?sourcedoc=%7BC[cTag or eTAg??]%7D&file=Microsoft%20Word-Dokument%20(neu).docx&action=default&mobileredirect=true

 

Text in brackets [] is annotated by me.

 

PDF file link will download the PDF, the Word file link will open it in the Browser GUI.

 

I'd like to create links so that the PDF file is opened in the Adobe Cloud UI in the Browser, same as when I open the PDF in OneDrive or Sharepoint.

 

 

  • atwork321 

    One workaround is to append "?web=1" to the link.

     

    https://[sharepointsite]-my.sharepoint.com/personal/[name_company]/Documents/[Folder]/Test/Testdokument.pdf 

     

    the workarounds will open the web view and enable the user to select "open in Adobe Acrobat"

1 Reply

  • atwork321's avatar
    atwork321
    Copper Contributor

    atwork321 

    One workaround is to append "?web=1" to the link.

     

    https://[sharepointsite]-my.sharepoint.com/personal/[name_company]/Documents/[Folder]/Test/Testdokument.pdf 

     

    the workarounds will open the web view and enable the user to select "open in Adobe Acrobat"

Resources