View PDF without Web Dev

Using Perspective is there any way to view a PDF without the Web Dev module?
I’ve seen a script here that uses system.file.openFile to open specific files.

# 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.

A post was merged into an existing topic: Perspective PDF Viewer without WebDev