How to get page count of each annotation attachment programmatically

Community Beginner ,
Jun 11, 2019

Copy link to clipboard

Copied

I have a number of annotation attachments in a pdf form. I would like to get the page count of each annotation attachment(mostly pdf). Is there any way to get it.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

133

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

How to get page count of each annotation attachment programmatically

Community Beginner ,
Jun 11, 2019

Copy link to clipboard

Copied

I have a number of annotation attachments in a pdf form. I would like to get the page count of each annotation attachment(mostly pdf). Is there any way to get it.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

134

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
Jun 11, 2019 0
Most Valuable Participant ,
Jun 11, 2019

Copy link to clipboard

Copied

No.

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
Reply
Loading...
Jun 11, 2019 0
Adobe Community Professional ,
Jun 11, 2019

Copy link to clipboard

Copied

What exactly do you mean by the "page count of each annotation"? 

Do you mean you have Annotations of the Attachement Type? 

So do you mean you want to get the number of Attachment Annotations on each page?

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
Reply
Loading...
Jun 11, 2019 0
Community Beginner ,
Jun 11, 2019

Copy link to clipboard

Copied

What i am looking to get is the total number of pages of each of the annotations(pdf files) of the type " annotation attachment" which are attached to a pdf file. Is there any way to get it. Getting the annotation count of each page to which the annotation is attached is not useful for me.

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
Reply
Loading...
Jun 11, 2019 0
Adobe Community Professional ,
Jun 11, 2019

Copy link to clipboard

Copied

My misunderstanding.  You want the page count of the PDF attachment. Unfortunately the JavaScript model does not provide the same access for an attachment annotation as it does an actual file attachment. The frustrating bit is that from a UI perspective they look the same, but in JavaScript they are different things. These files cannot be opened from JavaScript.

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
Reply
Loading...
Jun 11, 2019 1