Remove Comments & Comment Authors from PPT in C#
Build .NET applications that manipulate comments and authors in presentation files using server-side APIs.
Remove Comments from PPT via C#
Use
Aspose.Slides for .NET
to remove comments and comment authors from PPT presentation files. The example below clears each author’s Comments collection and then clears the presentation CommentAuthors collection.
Delete Annotations from PPT - C#
using var presentation = new Presentation("example.ppt");
foreach (var commentAuthor in presentation.CommentAuthors)
{
commentAuthor.Comments.Clear();
}
presentation.CommentAuthors.Clear();
presentation.Save("example_out.ppt", SaveFormat.Ppt);How to Remove Comments from PPT via C#
Follow these steps to remove comments and comment authors from a PPT presentation.
- Install Aspose.Slides for .NET. See Installation.
- Load the PPT file with the
Presentationclass. - Iterate through the
CommentAuthorscollection. - Clear the
Commentscollection for each comment author. - Clear the
CommentAuthorscollection. - Save the updated presentation with
SaveFormat.Ppt.
Built with Aspose.Slides
Remove PPT Comments Online
The free Aspose.Slides Annotation app is built with Aspose.Slides for .NET, the same API as the code above. Open it and see what the API can do with your own PPT files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides removes comments before you write code.
- Remove all comments from your PPT file.
- Download the cleaned file.
Other Supported Annotation Formats
Using C#, you can also remove annotations from other formats.