How to get page count of each annotation attachment programmatically

Community Beginner ,
Jun 11, 2019 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

141

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 ,
Jun 11, 2019 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
community guidelines
Adobe Community Professional ,
Jun 11, 2019 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?

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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 ,
Jun 11, 2019 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
community guidelines
Adobe Community Professional ,
Jun 11, 2019 Jun 11, 2019

Copy link to clipboard

Copied

LATEST

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.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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