I've got the following code:
myTrustedSaveAs = app.trustedFunction( function ( doc, path )
{
app.beginPriv();
doc.saveAs({
cPath: path,
bCopy: true,
bPromptToOverwrite: true
});
app.endPriv();
});
myTrustedOpenDoc = app.trustedFunction( function ( path )
{
app.beginPriv();
app.openDoc({
cPath: path
});
app.endPriv();
})
C:\Documents and Settings\my.name\Application Data\Adobe\Acrobat\Privileged\11.0\JavaScripts\init.js
When I try to call the function in my PDF, it says the funciton is not defined.
Is there somewhere else this file needs to be?
More generally, our users have a number of combinations of Adobe reader 9-11, writer 9-11 on XP and Windows 7.
Is there someplace which lists where all the privledged folders are supposed to be? If not, a funciton in Adobe to provide the path would sure be useful...