Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

250

Likes

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

Adobe Community Professional , May 24, 2021 May 24, 2021
Instead of rect you need to specify the points property, like this: points: [[10,10],[10,100]]

Likes

Translate

Translate
Adobe Community Professional ,
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

Likes

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

Likes

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
Adobe Community Professional ,
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]]

Likes

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!

Likes

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