# Show PDF from Sharepoint

**URL:** <https://forum.inductiveautomation.com/t/show-pdf-from-sharepoint/64472>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [September 26, 2022, 10:39am UTC](https://forum.inductiveautomation.com/t/show-pdf-from-sharepoint/64472 "2022-09-26T10:39:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inken\_Kestler](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@Inken\_Kestler](https://forum.inductiveautomation.com/u/Inken_Kestler)\
**Post date:** [September 26, 2022, 10:39am UTC](https://forum.inductiveautomation.com/t/show-pdf-from-sharepoint/64472/1 "2022-09-26T10:39:49Z")

</div>

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  
Inken

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [September 26, 2022, 11:30am UTC](https://forum.inductiveautomation.com/t/show-pdf-from-sharepoint/64472/2 "2022-09-26T11:30:22Z")

</div>

Is this _Vision_ or _Perspective_? Please edit the question and add in the appropriate tag.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 26, 2022, 12:33pm UTC](https://forum.inductiveautomation.com/t/show-pdf-from-sharepoint/64472/3 "2022-09-26T12:33:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Inken\_Kestler](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@Inken\_Kestler](https://forum.inductiveautomation.com/u/Inken_Kestler)\
**Post date:** [September 26, 2022, 12:49pm UTC](https://forum.inductiveautomation.com/t/show-pdf-from-sharepoint/64472/4 "2022-09-26T12:49:11Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 26, 2022, 1:18pm UTC](https://forum.inductiveautomation.com/t/show-pdf-from-sharepoint/64472/5 "2022-09-26T13:18:34Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gsconfienza](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@gsconfienza](https://forum.inductiveautomation.com/u/gsconfienza)\
**Post date:** [July 2, 2023, 10:58pm UTC](https://forum.inductiveautomation.com/t/show-pdf-from-sharepoint/64472/6 "2023-07-02T22:58:04Z")

</div>

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!!

---

<div class="post-metadata">

**Author:** ![Inken\_Kestler](https://avatars.discourse-cdn.com/v4/letter/i/bcef8e/32.png) [@Inken\_Kestler](https://forum.inductiveautomation.com/u/Inken_Kestler)\
**Post date:** [July 3, 2023, 5:26am UTC](https://forum.inductiveautomation.com/t/show-pdf-from-sharepoint/64472/7 "2023-07-03T05:26:06Z")

</div>

No,  
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.

Regards,  
Inken

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 3, 2023, 1:02pm UTC](https://forum.inductiveautomation.com/t/show-pdf-from-sharepoint/64472/8 "2023-07-03T13:02:32Z")

</div>

> [@Inken\_Kestler](#):
>
> view sharepoint files without downloading

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.
