GroupDocs.Annotation allows you to remove all previously added annotations. To do this, follow these steps:
Instantiate the Annotator class. Specify the input document path or stream.
Instantiate the SaveOptions class. Set AnnotationTypes = AnnotationType.None.
Call the save() method. Specify the output document path or stream.
The following code snippet shows how to remove annotation using its index:
// This example demonstrates how to remove annotations from document.
// Create an instance of Annotator class
Annotatorannotator=newAnnotator("inputPath");SaveOptionssaveOptions=newSaveOptions();saveOptions.setAnnotationTypes(AnnotationType.None);// Save result to file
annotator.save("outputPath",saveOptions);
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.