Remove Comments and Comment Authors from PPT in C++
Build C++ apps to manipulate comments and authors in presentation files using server-side APIs.
Remove Comments from PPT via C++
Use
Aspose.Slides for C++
to remove comments and comment authors from PPT presentations. The example below clears the comments of each author from get_CommentAuthors and then clears the comment author collection.
Delete Annotations from PPT - C++
auto presentation = MakeObject<Presentation>(u"example.ppt");
// Delete all comments from the presentation.
for (auto author : presentation->get_CommentAuthors())
{
author->get_Comments()->Clear();
}
// Delete all authors.
presentation->get_CommentAuthors()->Clear();
presentation->Save(u"output.ppt", SaveFormat::Ppt);
presentation->Dispose();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 C++. See Installation.
- Load the PPT file with the
Presentationclass. - Iterate through the comment authors from
get_CommentAuthors. - Clear the comments of each author with
get_Comments()->Clear(). - Clear the comment author collection.
- 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 C++, 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.