GroupDocs.Annotation allows you to update annotation replies by accessing them using the Replies collection.
To update annotation replies, follow these steps:
Instantiate the Annotator class. Specify the input document path or stream.
Call the Get method of the Annotator class to get collection of the document annotations.
Access a reply object in the Replies collection using its index (zero-based) and update its properties.
Call the Update method of the Annotator class. Specify annotations.
Call the Save method. Specify the output document path or stream and the SaveOptions class.
The following code snippet shows how to update reply by index:
// NOTE: Input document already contain annotations with repliesusing(Annotatorannotator=newAnnotator("result.pdf")){// Obtain annotations collection from documentList<AnnotationBase>annotations=annotator.Get();// Update first annotation first replyannotations[0].Replies[0].Comment="Updated reply";// Save changesannotator.Update(annotations);annotator.Save("result.pdf");}
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.