Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
I think it may be mandatory to send a notification, can't recall.
Copy link to clipboard
Copied
Thank you for the reply.
I got the solution
We can use PDPageRemoveAnnot as below:
PDPageRemoveAnnot(page, PDPageGetAnnotIndex(page, annot));
Thanks.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now