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

Remove Comments & Comment Authors from PPT in C++

Build your own C++ 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 C++ API which is a feature-rich, powerful and easy to use document manipulation API for C++ platform.

Delete Annotations from PPT - C++


using namespace Aspose::Slides;
using namespace Aspose::Slides::Export;
using namespace System::Drawing;

auto presentation = System::MakeObject<Presentation>(u"example.ppt");

// Deletes all comments from the presentation
for (auto author : presentation->get_CommentAuthors())
{
    author->get_Comments()->Clear();
}
        
// Deletes all authors
presentation->get_CommentAuthors()->Clear();
presentation->Save(u"example_out.pptx", SaveFormat::Pptx);

How to Remove Comments from PPT via C++

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

  2. Load PPT with an instance of Presentation class

  3. Iterate over all Authors of loaded PPT

  4. Remove all Comments of an author

  5. Remove all Authors at the end

Other Supported Annotation Formats

Using C++, one can easily annotate other formats including.