Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Difficulties creating annotation object

Community Beginner ,
May 24, 2021 May 24, 2021

Good afternoon to all members.

I am trying to create a vertical line as annotation at the click of a button. The code I am using is the following:

var bhd=this.addAnnot({name:"FR", page:this.pageNum, type:"Line", rect:[10,10,10,100] });

The annotation is created but regardless of the figures entered in the rect array, I always get the same 45 degrees slant line starting from 0,0. What am I doing wrong (or not doing)?

 

Thanks in advance,

 

Nikolas

 

TOPICS
How to
884
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
May 24, 2021 May 24, 2021

Instead of rect you need to specify the points property, like this:

 

points: [[10,10],[10,100]]

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 24, 2021 May 24, 2021

Please post the exact name of the Adobe program you use so a Moderator may move this message to that forum

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 24, 2021 May 24, 2021

OMG!

Apologies...

Acrobat Pro DC, version 2015.006.30527

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 24, 2021 May 24, 2021

Instead of rect you need to specify the points property, like this:

 

points: [[10,10],[10,100]]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 25, 2021 May 25, 2021
LATEST

Thank you very much, worked like a charm!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines