PPT DOCX XLSX PDF ODP
Aspose.Slides  for Python via .NET
PPTX

Remove Comments & Comment Authors from PPTX in Python

Build your own Python scripts to manipulate comments & authors in document files using server-side APIs.

Remove Comments from PPTX via Python

In order to remove annotations from the PPTX file, we’ll use Aspose.Slides for Python via .NET API which is a feature-rich, powerful and easy to use document manipulation API for Python platform.

Delete Annotations from PPTX - 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)

How to Remove Comments from PPTX via Python

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

  2. Load PPTX with an instance of Presentation class

  3. Iterate over all Authors of loaded PPTX

  4. Remove all Comments of an author

  5. Remove all Authors at the end

Other Supported Annotation Formats

Using Python, one can easily annotate other formats including.