Skip navigation
valeri_dzia
Currently Being Moderated

proble adding highlight annotation

Jul 9, 2012 1:57 AM

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.1030883789 062],readOnly : "false",rect : [122.39060974121094,741.359375,529.5776977539062,766.6466064453125],r efType : "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?

 
Replies
  • George Johnson
    9,232 posts
    Aug 11, 2002
    Currently Being Moderated
    Jul 9, 2012 10:13 AM   in reply to valeri_dzia

    I haven't tried this, but have you tried something like:

     

    try{

        var annot = this.addAnnot(eval("("+str+")"));

     

    // etc.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points