2 Replies Latest reply on Jul 17, 2012 3:14 AM by valeri_dzia

    annotation coordinates problem

    valeri_dzia Level 1

      Hi

       

      when I add an annotation as :

       

      var annot = this.addAnnot();

      annot.setProps({

      author : "vshariphashvili",

      contents : "my contents",

      name : "myName",

      page : 0,

      print : true,

      rect : [68.66091918945312,444.60260009765625,526.6072387695312,691.9005126953125],

      strokeColor : ["RGB",1,0.5,0.4],

      style : "S",

      type : "Text",

      width : 1

      });

       

      It works, my annotation is added and when I print its properties no problem, they are  complet

       

      when I add as highlight annotation, I add another propertie too : quads

       

      var annot = this.addAnnot();

      annot.setProps({

      author : "vshariphashvili",

      contents : "my contents",

      name : "myName",

      page : 0,

      print : true,

      quads : [238.6269989013672,691.4669799804688,356.6456298828125,691.4669799804688,238.626998901367 2,677.5950927734375,356.6456298828125,677.5950927734375,76.28500366210938,594.80078125,518 .983154296875,594.80078125,76.28500366210938,566.2410888671875,518.983154296875,566.241088 8671875,86.281005859375,548.6007690429688,508.9884033203125,548.6007690429688,86.281005859 375,520.0410766601562,508.9884033203125,520.0410766601562,212.9290008544922,474.0547790527 344,382.34405517578125,474.0547790527344,212.9290008544922,445.4950866699219,382.344055175 78125,445.4950866699219],

      rect : [68.66091918945312,444.60260009765625,526.6072387695312,691.9005126953125],

      strokeColor : ["RGB",1,0.5,0.4],

      style : "S",

      type : "Highlight",

      width : 1

      });

       

      annotation is only added on right bar (annotation list) not on my document and when I print its properties

      • I have rect values as : [-32768,-32768,32768,32768]
      • quads is empty

       

      why? what is problem?