Trusted function still giving permission errors.
I wrote a function in a js file in the C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Javascripts folder.
mySaveAs = app.trustedFunction(function(myForm, path)
{
app.beginPriv();
var myForm = event.target;
return rtn = myForm.saveAs(path);
app.endPriv();
});
I added a button to the form which calls.
mySaveAs(this, saveAsFile);
The console showsNotAllowedError: Security settings prevent access to this property or method.
App.beginPriv:15:Field Button1:Mouse Up
Is there something I am missing or doing wrong?
