# View PDF without Web Dev

**URL:** <https://forum.inductiveautomation.com/t/view-pdf-without-web-dev/45873>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 21, 2021, 5:53pm UTC](https://forum.inductiveautomation.com/t/view-pdf-without-web-dev/45873 "2021-04-21T17:53:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwilliams](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@jwilliams](https://forum.inductiveautomation.com/u/jwilliams)\
**Post date:** [April 21, 2021, 5:53pm UTC](https://forum.inductiveautomation.com/t/view-pdf-without-web-dev/45873/1 "2021-04-21T17:53:30Z")

</div>

Using Perspective is there any way to view a PDF without the Web Dev module?  
I’ve seen a script [here](https://docs.inductiveautomation.com/display/DOC80/system.file.openFile) that uses _system.file.openFile_ to open specific files.

```auto
# This code would prompt the user to open a file of type 'pdf' from their stored documents folder. If None is returned, it means the user canceled the open dialog box.
# Note: the computer running this code needs to have network access to the "fileserver" computer.
path = system.file.openFile('pdf', '\\fileserver\PDF_Storage')
if path != None:
   # do something with the file

```

But when I bind that (or similar script) to a button, it returns an error.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/d/cdb66b57589b15d53e0b0898ccdfa17f4383fc16.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/f/7fe0713c0700e6bde0ae5a403b4e8ad349b691af.png)

---

<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:** [April 21, 2021, 5:57pm UTC](https://forum.inductiveautomation.com/t/view-pdf-without-web-dev/45873/2 "2021-04-21T17:57:09Z")

</div>

Split this topic on April 21, 2021, 5:57pm UTC

A post was merged into an existing topic: [Perspective PDF Viewer without WebDev](https://forum.inductiveautomation.com/t/perspective-pdf-viewer-without-webdev/45874)

---

<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:** [April 21, 2021, 5:57pm UTC](https://forum.inductiveautomation.com/t/view-pdf-without-web-dev/45873/3 "2021-04-21T17:57:09Z")

</div>

Closed on April 21, 2021, 5:57pm UTC


