# Perspective PDF viewer

**URL:** <https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711>\
**Category:** Ignition\
**Created:** [June 11, 2019, 9:02am UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711 "2019-06-11T09:02:42Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![souxifou](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@souxifou](https://forum.inductiveautomation.com/u/souxifou)\
**Post date:** [June 11, 2019, 9:02am UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/1 "2019-06-11T09:02:42Z")

</div>

Hi everyone,

I have a problem with my PDF viewer (in perspective), when i’m using the path into the PDF viewer of vision is working but on perspective, the coponent tell me : “Failled to load PDF file”.

Is this component really different from the vision component ?

---

<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:** [June 11, 2019, 11:42am UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/2 "2019-06-11T11:42:07Z")

</div>

Totally different. Vision clients run locally, and therefore need paths that can be interpreted locally, with the benefit that local files are accessible. Perspective clients run in a browser, and browsers block local file access (at least, from the same window as a network resource). So resource paths in Perspective generally need to point at gateway paths relative to the gateway URL, or to other safe URLs. It isn’t just the PDF viewer, either.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 11, 2019, 10:24pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/3 "2019-06-11T22:24:15Z")

</div>

Out of interest, where (what directory) would I put files on the gateway so that they’re accessible from a path that extends the gateway URL?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 11, 2019, 10:27pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/4 "2019-06-11T22:27:01Z")

</div>

The lazy way:  
`<ignition install directory>/webserver/webapps/` - they’ll be automatically served up from the root directory.

The proper way - use the Webdev module, and its ‘mounted folders’ feature.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 11, 2019, 10:35pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/5 "2019-06-11T22:35:39Z")

</div>

Thanks Paul!

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [July 22, 2019, 6:23pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/6 "2019-07-22T18:23:34Z")

</div>

@paul-griffith We are looking at doing a project where the customer needs reports, but we are also looking to future and want to use Perspective because he wants mobile and remote clients. Two questions:

1. I thought the WebDev Module was not supported by IA Support, but I no longer see that note when I price it. Is it now supported by IA Support, at least as far as integrating with Perspective as above?
2. Do you have a timeline for the release of the Perspective Report Viewer Component?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 22, 2019, 7:34pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/7 "2019-07-22T19:34:00Z")

</div>

WebDev has always been “supported”, in the sense that “if you encounter a bug, we will work with you to try and work around it, or let development know about it” - the heavy caveat was there because, unlike Vision or even Reporting, it’s just not feasible to train every support rep in the intricacies of web requests and the scripting required to use the webdev module. I don’t know the exact details of what’s changed, but I would still basically expect that to be true - don’t call into support with an expectation that you’ll get a rep who can tell you when to use POST vs PATCH, necessarily; but if you have a legitimate problem, they’ll escalate until they hit someone who does.

As for the native report viewer - no, no timeline. It’s on the primary feature backlog, but lower on the list than things like improved charting - so “soon”, but not that soon.

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [July 22, 2019, 7:40pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/8 "2019-07-22T19:40:01Z")

</div>

Ok. That’s a decent answer.

BTW, I understood not supporting WebDev as you mention. It sounds like a pretty powerful tool, but one that requires advanced training in things not normally encountered with Ignition, so not having all your support staff trained to help with it totally makes sense.

---

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [January 6, 2022, 3:16pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/9 "2022-01-06T15:16:09Z")

</div>

Hi,

Is it possible without Webdev Module ?  
I would like to show a pdf stored on my local server in C:\Users\Admin\Documents\reports.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 6, 2022, 4:53pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/10 "2022-01-06T16:53:22Z")

</div>

No. Web browsers do not allow you pages fetched over the internet to fetch local file resources, for security reasons.

---

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [January 11, 2022, 2:21pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/11 "2022-01-11T14:21:53Z")

</div>

Can PDF Viewer read files on a NTFS windows file server ?

---

<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:** [January 11, 2022, 3:00pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/12 "2022-01-11T15:00:03Z")

</div>

For a browser, file servers are local file resources. Ergo, no. (Repeating statements above.) You will need the gateway to fetch from the NTFS file server via WebDev and deliver the PDF. That way, the PDF is coming from the same “source” as the Perspective page that wishes to display it.

If you absolutely cannot do this, stick with Vision.

---

<div class="post-metadata">

**Author:** ![flavien](https://avatars.discourse-cdn.com/v4/letter/f/f475e1/32.png) [@flavien](https://forum.inductiveautomation.com/u/flavien)\
**Post date:** [January 11, 2022, 3:21pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/13 "2022-01-11T15:21:11Z")

</div>

Thanks.  
So we have to buy Webdev Module to use PDF Viewer. ☹

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 11, 2022, 3:28pm UTC](https://forum.inductiveautomation.com/t/perspective-pdf-viewer/25711/14 "2022-01-11T15:28:01Z")

</div>

Or use your own webserver returning appropriate CORS headers (or hosted on the same domain as the Ignition gateway).

Web is web. The restrictions on local file resources are a consequence of the browser environment, not a decision made by Inductive Automation/Ignition/Perspective.
