PPTX
DOCX
XLSX
PDF
ODP
PPT
Remove Comments & Comment Authors from PPT in C#
Build your own .NET apps to manipulate comments & authors in document files using server-side APIs.
Remove Comments from PPT via C#
In order to remove annotations from the PPT 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 PPT - C#
using (Presentation presentation = new Presentation("example.ppt"))
{
// 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 PPT via C#
Install Aspose.Slides for .NET. See Installation .
Load PPT with an instance of Presentation class
Iterate over all Authors of loaded PPT
Remove all Comments of an author
Remove all Authors at the end