PPT DOCX XLSX PDF ODP
Aspose.Slides  for .NET
PPTX

Remove Comments & Comment Authors from PPTX in C#

Build your own .NET apps to manipulate comments & authors in document files using server-side APIs.

Remove Comments from PPTX via C#

In order to remove annotations from the PPTX file, we’ll use Aspose.Slides for .NET API which is a feature-rich, powerful and easy to use document manipulation API for C# platform.

Delete Annotations from PPTX - C#


using (Presentation presentation = new Presentation("example.pptx"))
{
    // Deletes all comments from the presentation
    foreach (var author in presentation.CommentAuthors)
    {
        author.Comments.Clear();
    }

    // Deletes all authors
    presentation.CommentAuthors.Clear();

    presentation.Save("example_out.pptx", SaveFormat.Pptx);
}

How to Remove Comments from PPTX via C#

  1. Install Aspose.Slides for .NET. See Installation .

  2. Load PPTX with an instance of Presentation class

  3. Iterate over all Authors of loaded PPTX

  4. Remove all Comments of an author

  5. Remove all Authors at the end

Other Supported Annotation Formats

Using C#, one can easily annotate other formats including.