1 Reply Latest reply on Mar 23, 2010 11:44 PM by Steven.Madwin

    help width signature please


      Hello, someone know if is posible get signature field if you don`t know the name of the field? I need to know if a form has been signet and it is, I must disable the document save but I don´t know the name of signature field because the pdf are signet width a external tool .


      For example:


      "form. subform. getfieldName" or "getFieldSignature" or similar?


      Thanks a lot

        • 1. Re: help width signature please
          Steven.Madwin Adobe Employee

          Hi Margaritina,


          Here's the code.


          Good luck,



          //Print all the data for all of the signed signature fields
          //and only note signature fields that are unsigned.
          //Skip non-signature fields


          var myEngine = security.getHandler("Adobe.PPKLite");


          for (var i = 0; i < this.numFields; i++) {
              var f = this.getNthFieldName(i);
              var oField = this.getField(f);
              var Info = oField.signatureInfo(myEngine);
              if (Info.statusText != "Not a signature field") {
                  if (Info.statusText.match(/unsigned$/)) {    //if the signature field is unsigned say so
                      console.println("Signature Attributes for \"" +f+ "\":");
                      console.println (Info.statusText);
                  else {                        //print all of the info for the signed fields
                      console.println("Signature Attributes for \""+f+"\":");
                      for(var x in Info) console.println( x + " = " + eval('Info.' +x))