Trusted Function not defined Reference Error
Hello,
I have Acrobat Standard XI and Windows 7. I created a trusted function in the location C:\Program Files (x86)\Acrobat\Javascripts (this location I got when I consoled app.getPath("app","javascript") as follows:
var trustedNewDoc = app.trustedFunction( function (nWidth, nHeight)
{
app.beginPriv();
var doc = app.newDoc( nWidth, nHeight );
app.endPriv();
return (doc);
})
On a button mouse up event I called the function trustedNewDoc(300,300);
On the button click I get this error:
ReferenceError: trustedNewDoc is not defined
1:Field:Mouse Up
I also tried in the location got from app.getPath("user","javascript"); But still same error
When I enter app.newDoc(300,300) in the console then it does create a new document.
Can someone help understanding what could be the issue?
Thanks in advance
Babla Bogam