@Prasad_Kulkarni
Thanks for contacting support and showing interest in our API.
Please check following code snippet, in order to delete Annotations (e.g link annotation) from the PDF document.
Document pdfDocument = new Document(dataDir + "source.pdf");
PageCollection pages = pdfDocument.Pages;
foreach (Page p in pages)
{
foreach (Annotation anno in p.Annotations)
{
if (anno.AnnotationType == AnnotationType.Link)
{
p.Annotations.Delete(anno);
}
}
}
pdfDocument.Save(dataDir + "output.pdf");
You may find more information in this regard one “Add, Delete and Get Annotation” page of our API documentation. In case if you face any issue please share your sample input document, we will test the scenario in our environment address it accordingly.