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

How to get page count of each annotation attachment programmatically

Community Beginner ,
Jun 11, 2019 Jun 11, 2019

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

No.

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

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

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

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.

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

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