Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

How can I access the "security" constant from JSObject?

$
0
0

I would like to set the permissions for printing to "none" using C#.  The Javascript documentation says to use the "security" constant to access like this:

security.getHandler(security.PPKLiteHandler, true);

to access the handler and then to apply the permissions:

this.encryptForRecipients({

oGroups :

[

{userEntities:importantUsers,permissions:{allowAll:true }},

{userEntities: otherUsers, permissions:{allowPrinting:"none"}}

],

bMetaData : true

});

 

"this" refers to the JSObject, but how do I send the message "security.getHandler"?


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>