Show PDF from Sharepoint

HI togeher,

I try to read a PDF file from sharepoint and view it with the PDF Viewer in Vision.
For this I used the GRAPH API and it works, but really slowly. So if you try to get a PDF with around 8 pages it takes about 6 seconds to open the file. It feels like you are in the 90’s.
It is so slow because with the http request you recieve the download url, which you can use for the URL of the PDF viewer.
By the way, this also works in Perspective.

Does somebody know an opportunity to open a file without downloading it. I don’t want to change anything, I only want to view it in Ignition without waiting so long.

Thank you

Is this Vision or Perspective? Please edit the question and add in the appropriate tag.

Just how big is the file? (One way or the other, it will have to travel over the network.)

The file has 530KB.
I hoped that there is a way, to open the URL without downloading it. If I open it like usual in Sharepoint it’s shown without downloading it. This is much faster.

Hmm. It goes over the network just to view it from Sharepoint, too. There must be some nuance to Sharepoint that matters here, and I’m just not the guy to help.

Hello! I was trying to do the same. Did you find a workarround? Otherwise, would you mind sharing the code you used? Thanks in advance!!

I didn't find a solution for sharepoint.
My solution was to use documents from a network folder. It's much quicker to view them.

Bit if anybody knows how to view sharepoint files without downloading, I'm still interested.


As I noted above, there is no such thing. Viewing is the same as downloading, at least for the parts you actually look at. Most browsers will start showing you pages from a PDF as soon as the first page is received, to give the appearance of avoiding the download. The key is that the browser itself (or a smart PDF plugin) must handle the URL.