# Usuń adnotację ODP za pomocą Pythona

> Kod źródłowy Pythona do usuwania komentarzy do prezentacji ODP

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



## Usuń komentarze z ODP za pomocą Pythona

Aby usunąć adnotacje z pliku ODP, użyjemy [Aspose.Slides for Python via .NET](https://products.aspose.com/slides/pl/python-net/) API, które jest bogatym w funkcje, potężny i łatwy w użyciu interfejs API do manipulacji dokumentami dla platformy Python.

### Usuń adnotacje z ODP — Python

```python

import aspose.slides as slides

with slides.Presentation("example.odp") as presentation:
    # Deletes all comments from the presentation
    for author in presentation.comment_authors:
        author.comments.clear()

    # Deletes all authors
    presentation.comment_authors.clear()

    presentation.save("example_out.pptx", slides.export.SaveFormat.PPTX)
```

## Jak usunąć komentarze z ODP za pomocą Pythona

Install **Aspose.Slides for Python via .NET**. See [**Installation**](https://docs.aspose.com/slides/python-net/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
