addWatermarkFromFile no longer working
We are running Adobe Acrobat DC (20.013.20074). We have a javascript function that inserts a signature into a PDF which was working fine until the latest update that was installed. The javascript function is as follows:
var addSignatureToCheck = app.trustedFunction(function(){
app.beginPriv();
this.addWatermarkFromFile({
cDIPath: "/E/Printing Support/Images/Signature.jpg",
nHorizAlign: app.constants.align.bottom,
nVertAlign: app.constants.align.bottom,
nHorizValue: 175.0, nVertValue: 25.0,
nRotation: 0,
nScale: .80
});
app.endPriv() ;
});
The error message from the javascript console is:
Exception in line 8 of function addSignatureToCheck<, script Folder-Level:App:AddSignatureToCheck.js
Exception in line 1 of function top_level, script Batch:Exec
GeneralError: Operation failed.
Doc.addWatermarkFromFile:8:Batch undefined:Exec
Any thoughts as to why we might be getting this error.
Thanks,
Richard