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

Remove Comments & Comment Authors from PPTX in C#

Build .NET applications that manipulate comments and authors in presentation files using server-side APIs.

Remove Comments from PPTX via C#

Use Aspose.Slides for .NET to remove comments and comment authors from PPTX presentation files. The example below clears each author’s Comments collection and then clears the presentation CommentAuthors collection.

Delete Annotations from PPTX - C#

using var presentation = new Presentation("example.pptx");

foreach (var commentAuthor in presentation.CommentAuthors)
{
    commentAuthor.Comments.Clear();
}

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 the PPTX file with the Presentation class.

  3. Iterate through the CommentAuthors collection.

  4. Clear the Comments collection for each comment author.

  5. Clear the CommentAuthors collection.

Other Supported Annotation Formats

Using C#, you can also remove annotations from other formats.