How to disable embedded JavaScript execution?

54 views
Skip to first unread message

Matt Parizeau

unread,
Sep 30, 2016, 6:21:06 PM9/30/16
to PDFTron WebViewer
Q:

We have a PDF file we're opening in WebViewer that has some embedded JavaScript that opens an alert box and we would prefer if this box didn't pop up. Is it possible to disable the embedded JavaScript execution?

A:

You can add the following code to a config file:

Actions.JavaScript.prototype.onTriggered = function() {};
Reply all
Reply to author
Forward
0 new messages