Calling Trusted javascript function from plugin


i developing 1 pluging , in on 1 button click of  dialog box calling 1 javascript , follwing code of javascript

 

mytrustedfunction = app.trustedfunction(

function()

{

          app.beginpriv();

          var filteroptions = { target: security.encrypttargetdocument };

          var policy =security.choosesecuritypolicy( { ooptions: filteroptions } );

          app.endpriv();

}

);

using c++ in backend develop plugin. , calling javascript on button click of dialog box .even though  used trusted function after executing code getting following error on java script console

 

notallowederror: security settings prevent access property or method.

app.trustedfunction:3:doc undefined:exec

 

is there solution ?

where code placed? cannot execute plug-in, call it.



More discussions in Acrobat SDK


adobe

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues