12 Replies Latest reply: Jun 21, 2012 12:22 AM by valeri_dzia RSS

    detect annotation

    valeri_dzia

      Is it possible to detect new annotation on a PDF and show it?

       

      I wrote this code :

       

      var k=0;

      var n=1;

      while(k<n){

          var a = this.getAnnots();

          var str ="My annotations : \n";

          if(a==null)

              app.alert("0");

          else{

                n=a.length;

                app.alert(a[k].contents);

                k++;

              }

           }

       

      when I add new annotation it doesn't show them