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

Difficulties creating annotation object

Community Beginner ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

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

Views

531

Translate

Translate

Report

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

correct answers 1 Correct answer

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]]

Votes

Translate

Translate
Community Expert ,
May 24, 2021 May 24, 2021

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

OMG!

Apologies...

Acrobat Pro DC, version 2015.006.30527

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

 

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Thank you very much, worked like a charm!

Votes

Translate

Translate

Report

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