PPTX
DOCX
XLSX
PDF
ODP
PPT
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++
To remove annotations from a PPT file, use the Aspose.Slides for C++ API, a feature-rich and easy-to-use presentation manipulation API for C++.
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++
Install Aspose.Slides for C++. See Installation .
Load a PPT file with an instance of the Presentation class.
Iterate over all authors in the loaded PPT file.
Remove all comments from each author.
Remove all authors at the end.