Certain FreeText attributes don't seem to work in this.addAnnot


hi,

 

i'm executing javascript code:

 

myrect = this.addannot

           ( { page: 0,

                type: "freetext",

                width: 1,

                strokecolor: color.black,

                textsize: 14,

                contents: "abc",

                alignment: "center",

                rect: [ llx, lly, urx, ury] })

 

the textsize, contents , alignment parameters ignored.

 

if put text size outside of this.addannot follows, works fine:

 

    myrect.textsize = 14;

 

the contents works within this.addannot except text color wrong (it's red).  if contents follows outside of this.addannot, works fine:

 

   myrect.contents = "abc";   // produces black text, should

 

i've never been able alignment work in case, either within this.addannot or outside of it. 

 

can tell me if textsize , contents have outside of this.addannot in order work correctly?  also, can tell me if alignment has ever worked in acrobat javascript?  btw, i've tried both "center" , value 1 alignment, it's left aligned.

 

thanks.  i'm on acrobat 9.

 

dave

what size , location of annotation?

what values llx, lly, urx, , ury?

size of pdf page?

is pdf page rotated?

 

have tried making annotation , modifying it?



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support