PPT PPTX ODP PPS POT
Aspose.Slides for Python via .NET
PPT

Remove Comments and Comment Authors from PPT in Python

Use Aspose.Slides for Python via .NET to remove presentation comments and their associated authors.

Remove Comments from PPT via Python

Aspose.Slides for Python via .NET provides access to the comments and comment authors stored in a PPT presentation. Load the file with Presentation, clear each author’s comments collection, clear comment_authors, and save the result in PPT format.

Remove Comments from PPT in Python

with slides.Presentation("presentation.ppt") as presentation:
    for comment_author in presentation.comment_authors:
        comment_author.comments.clear()

    presentation.comment_authors.clear()
    presentation.save("presentation-without-comments.ppt", slides.export.SaveFormat.PPT)

How to Remove Comments from PPT via Python

Follow these steps to remove all comments and comment authors from a PPT presentation.

  1. Install Aspose.Slides for Python via .NET .

  2. Open the PPT file with Presentation.

  3. Iterate through comment_authors and clear each author’s comments collection.

  4. Clear the comment_authors collection.

  5. Call save with SaveFormat.PPT to write the updated PPT presentation.

Other Supported Comment Formats

You can also remove comments from other supported presentation formats.