How to Remove Annotation Reply from PDF using C#

The purpose of this how-to tutorial is to demonstrate how to remove annotation reply from PDF using C#, as well as how to configure annotation package along with sample code example to delete reply annotation using C# from PDF. We will show you how to easily remove annotation reply using few API calls of annotation library. With the following detailed instructions, you will learn how to delete reply of annotation from PDF.

Steps to Remove Annotation Reply from PDF using C#

  1. The GroupDocs.Annotation for .NET package can be installed from NuGet to delete annotation reply
  2. The GroupDocs.Annotation namespace must be referenced in order to remove reply of annotation
  3. Create an Annotator object with the path of input PDF
  4. Get annotations collection using Annotator.Get method
  5. Use RemoveAt method of collection to remove reply
  6. Call Annotator.Update method to update annotation
  7. Call Annotator.Save method to save the final output to disk

This article outlines all the steps needed to delete reply of annotation from PDF in C#. You can follow these directions at any of common operating systems such as Windows, Linux or macOS that support .NET. In addition, you do not need to install any extra software to make use of this annotation library. Following code example illustrates how to delete reply of annotation.

Code to Remove Annotation Reply from PDF using C#

The above sample code example explains how you can remove annotation reply from PDF in C#. Note that you have to update the annotations before saving the PDF. Moreover, once you have collection object of replies, you can remove single or all replies of annotation using .NET Collection methods. To learn more about adding reply to annotation, please check out our article how to add reply to annotation in PDF using C#.

 English