# Usuń adnotację ODP za pomocą C++

> Kod źródłowy C++ do usuwania adnotacji z ODP

Source: https://products.aspose.com/slides/pl/cpp/annotation/odp/
Updated: 2023-04-18



## Usuń komentarze z ODP za pomocą C++

Aby usunąć adnotacje z pliku ODP, użyjemy [Aspose.Slides for C++](https://products.aspose.com/slides/pl/cpp/) API, które jest bogate w funkcje, wydajne i łatwe w użyciu API do manipulacji dokumentami dla platformy C++.

### Usuń adnotacje z ODP — C++

```cpp

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

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

// 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);
```

## Jak usunąć komentarze z ODP przez C++

Zainstaluj **Aspose.Slides dla C++**. Zobacz [**Instalacja**](https://docs.aspose.com/slides/cpp/installation/).

Załaduj ODP z instancją klasy Presentation

Iteruj przez wszystkich autorów załadowanego ODP

Usuń wszystkie komentarze autora

Usuń wszystkich autorów na końcu

## Inne obsługiwane formaty adnotacji
