JavaScript importDataObject in trusted JS functrion still generatesNotAllowedError
Hi,
Don't know if someone already experienced the issue.
I used to add attachements to my pdf using the AddAnnot method in a trusted JS function, without issue.
For convenience, I moved to the importDataObject , giving more flexibilities. Unfortunately, and whatever security option i set in the reader, the following code generates the error:
NotAllowedError: Security settings prevent access to this property or method.
var import_doc = app.trustedFunction ( function (c,doc) {
app.beginPriv();
doc.importDataObject(c);
app.endPriv();
}
);
Any help or advise will be more than welcome.
Thanks
Phil
