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

How to delete a Highlight annotation?

New Here ,
Jan 16, 2017 Jan 16, 2017

Hello,

I have created a plugin to create a highlight annotation using COS object.

Now, I want to delete that annotation by comparing the contents in it.

How can I achieve this?

I am using:

SDK : Acrobat Pro SDK(Version1)

Product: Acrobat Pro DC(Version2015)

Platform: Windows 7

Thanks,

Best Regards,

Navnath

TOPICS
Acrobat SDK and JavaScript
666
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
LEGEND ,
Jan 16, 2017 Jan 16, 2017

Using Cos I would enumerate the annotations on each target page IN REVERSE ORDER of annotation index. Start with the Annots key in the page dictionary (optional). Compare the annotation type and other keys to find a match. Delete from the Annots array.

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
LEGEND ,
Jan 16, 2017 Jan 16, 2017

I think it may be mandatory to send a notification, can't recall.

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
New Here ,
Jan 16, 2017 Jan 16, 2017
LATEST

Thank you for the reply.

I got the solution

We can use PDPageRemoveAnnot as below:

PDPageRemoveAnnot(page, PDPageGetAnnotIndex(page, annot));

Thanks.

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