# حاشیه نویسی ODP را با استفاده از پایتون حذف کنید

> کد منبع پایتون برای حذف نظرات ارائه ODP

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



## حذف نظرات از ODP از طریق پایتون

برای حذف حاشیه‌نویسی‌ها از فایل ODP، از [Aspose.Slides for Python via .NET](https://products.aspose.com/slides/fa/python-net/) API استفاده می‌کنیم که دارای ویژگی‌های غنی است، API دستکاری اسناد قدرتمند و آسان برای پلتفرم پایتون.

### حاشیه نویسی ها را از 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)
```

## نحوه حذف نظرات از ODP از طریق پایتون

Install **Aspose.Slides for Python via .NET**. See [**Installation**](https://docs.aspose.com/slides/python-net/installation/).

ODP را با یک نمونه از کلاس Presentation بارگیری کنید

تکرار روی همه نویسندگان ODP بارگذاری شده

تمام نظرات یک نویسنده را حذف کنید

در پایان تمام نویسندگان را حذف کنید

## سایر فرمت های حاشیه نویسی پشتیبانی شده
