How can I access the 'security' of JSObject constant?

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

security.getHandler (safety. (PPKLiteHandler, true);

to access the Manager then to apply permissions:

this.encryptForRecipients({)

oGroups:

[

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

{userEntities: otherUsers, authorization: {allowPrinting: 'none'}}

],

bMetaData: true

});

'This' refers to the JSObject, but how do I send the message 'security.getHandler '?

I thought about it myself.  The purpose of 'security' is a static property of JSObject, so in order to use it I have to go through the process to recover from the static properties for JSObject.  This is done by making the call:

                Type T = jso.GetType();
                Object security= (Object)T.InvokeMember(
                    "security",
                    BindingFlags.GetProperty |
                    BindingFlags.Public |
                    BindingFlags.Static,
                    null, jso, null);

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • Need driver sound WXP for my Satellite C55-A-126

    Hello I just instaled windows xp service pack 3 on my Toshiba Satelite C55 A126 and I spent 3 days looking for an audio driver for xp, that will work. I instaled a lot of them, but I still haven't given that the audio device is not recognized and I'd

  • I can't all Toshiba Apps for Win 7?

    Hi all! I'm trying to decide if now upgrading to windows 7 from vista.So far, I'm to be defensible encouraged to spend so I guess I have. However, I have a lot of applications and software Toshiba on my system.I'd be able to get and simply re - insta

  • Pavilion p6-2480ed: I want to upgrade my graphics card

    Hello I want to update my graphics card to my pc now, I always use the AMD Radeon HD 8570, this one came with the pc when I bought in 2013.  I have a budget of 200 euros but I can't go on if necessary. You guys have any suggestions that fit into my c

  • correct settings for two networks?

    I have a desk that has a building at each end of the city.  I have a wireless bridge that connects the buildings.  Each building is on its own ip configuration and has its own internet connection.  I have a server for A construction program.  I want

  • How to use the file transfer Wizard

    I have and old Dell XP and I am go buy new Dell with Windows 7.  I'm going to disconnect the old computer and with some help Setup new computer using Dell Windows 7. I want to save, copy and install My Documents, My computer, email, and Favorites in