PPT DOCX XLSX PDF ODP
Aspose.Slides  for C++
PPTX

Remove Comments and Comment Authors from PPTX in C++

Build C++ apps to manipulate comments and authors in presentation files using server-side APIs.

Remove Comments from PPTX via C++

To remove annotations from a PPTX file, use the Aspose.Slides for C++ API, a feature-rich and easy-to-use presentation manipulation API for C++.

Delete Annotations from PPTX - C++

auto presentation = MakeObject<Presentation>(u"example.pptx");

// 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.pptx", SaveFormat::Pptx);
presentation->Dispose();

How to Remove Comments from PPTX via C++

  1. Install Aspose.Slides for C++. See Installation .

  2. Load a PPTX file with an instance of the Presentation class.

  3. Iterate over all authors in the loaded PPTX file.

  4. Remove all comments from each author.

  5. Remove all authors at the end.

Other Supported Annotation Formats

Using C++, you can also remove annotations from other formats, including: