Windows
ComPDFKit PDF SDK
Guides

Delete Annotations

 

To remove an annotation from a document.

 

CPDFDocument document = CPDFDocument.InitWithFilePath("filePath");
CPDFPage page = document.PageAtIndex(0);

List<CPDFAnnotation>annotList = page.GetAnnotations();
annotList[0].RemoveAnnot();