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

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

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



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

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

### ลบคำอธิบายประกอบจาก PPTX - Python

```python

import aspose.slides as slides

with slides.Presentation("example.pptx") 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)
```

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

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

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

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

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

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

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