# ลบคำอธิบายประกอบ ODP โดยใช้ Python

> ซอร์สโค้ด Python เพื่อลบความคิดเห็นการนำเสนอ ODP

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



## ลบความคิดเห็นจาก ODP ผ่าน Python

ในการลบคำอธิบายประกอบออกจากไฟล์ ODP เราจะใช้ [Aspose.Slides สำหรับ Python ผ่าน .NET](https://products.aspose.com/slides/th/python-net/) API ซึ่งมีคุณลักษณะหลากหลาย API การจัดการเอกสารที่มีประสิทธิภาพและใช้งานง่ายสำหรับแพลตฟอร์ม Python

### ลบคำอธิบายประกอบจาก 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 ผ่าน Python

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

โหลด ODP ด้วยอินสแตนซ์ของคลาสการนำเสนอ

วนซ้ำผู้เขียนทั้งหมดของ ODP ที่โหลด

ลบความคิดเห็นทั้งหมดของผู้เขียน

ลบผู้เขียนทั้งหมดในตอนท้าย

## รูปแบบคำอธิบายประกอบอื่นๆ ที่รองรับ
