2 Replies Latest reply on Jul 17, 2013 9:42 AM by gkaiseril

    JavaScript that adds menu item to Acrobat 10 & up

    MikeBruno

      A few years back, I had written a simple Javascript which added a new menu item in the "Document" menu in Acrobat 8 and 9.  My organization has since moved to 10.1 & the "Document" menu is no more.  Is it still possible to add custom functionality to Acrobat via a JavaScript?

       

      Here is my original code:

       

       

      function RegulateEsig()
      {
      
          for ( var i = 0; i < this.numFields; i++)
          {
              fname=this.getNthFieldName(i) //get the field name so that we can get the field object
              f = this.getField(fname)             //get the field object so we can determine what type of field it is and then set properties
      
              if (f.type == "signature")
              {
                  f.signatureSetSeedValue({certspec: {keyUsage: [0x7FFFFFF7], flags: 0x32},}); 
              }
          }
      }
      
      
      app.addMenuItem({
                cName: "Apply eSignature Compliance Settings",
                cParent: "Document",
                cExec:"RegulateEsig()"
                });
      
      

       

      Thanks in advance!