2 Replies Latest reply on Jul 11, 2012 2:29 AM by valeri_dzia

    proble adding highlight annotation

    valeri_dzia Level 1

      Hello,

       

      When I manually add a highlight annotation, it is added but not showed on document, it appears only on the list of my doc annotations (right bar -> Comment/Annotation)

       

       

      function setA(str){

          var annot = this.addAnnot();

          var myAnnot = str;

          try{

              annot.setProps(eval("("+myAnnot+")"));

          }

          catch(err){

              app.alert(err.message);

          }

      }

       

      setA(

      {author : "test",borderEffectIntensity : "0",borderEffectStyle : "S",contents : "",creationDate : new Date( "Mon Jul 09 2012 10:19:17 GMT+0200"),dash : "",delay : "false",exdata : "undefined",hidden : "false",inReplyTo : "",intent : "Highlight",lock : "false",lockContents : "false",modDate : new Date( "Mon Jul 09 2012 10:19:17 GMT+0200"),name : "b8b911b9-6bc8-4696-a233-224b0152b742",noView : "false",opacity : "1",page : "2",popupOpen : "false",popupRect : [595,645.90283203125,775,765.90283203125],print : "true",quads : [128.74400329589844,765.90283203125,523.2243041992188,765.90283203125,128.74400329589844, 742.1030883789062,523.2243041992188,742.1030883789062],readOnly : "false",rect : [122.39060974121094,741.359375,529.5776977539062,766.6466064453125],refType : "R",rotate : "0",seqNum : "1",strokeColor : ["RGB",1,1,0],style : "S",subject : "Highlighted text ",toggleNoView : "false",type : "Highlight",width : "1"});

       

      These properties I copied manualy by existing highlight annotation

      whats problem?