GroupDocs.Annotation allows you to compare annotations using the Equals method or the already implemented IEquatable interface.
The following code snippet shows how to compare annotations:
using(Annotatorannotator=newAnnotator("annotated_file.pdf")){varannotations=annotator.Get();ImageAnnotationimageAnnotation=newImageAnnotation{Box=newRectangle(100,100,100,100),Opacity=0.7,PageNumber=0,ImagePath="www.google.com.ua/images/branding/googlelogo/2x/googlelogo_color_92x30dp.png",Angle=100};foreach(varannotationinannotations){if(imageAnnotation.Equals(annotation)){// Do some stuff here...}}}
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.