PPTX
DOCX
XLSX
PDF
ODP
PPT
Remove Comments & Comment Authors from PPT in Python
Build your own Python scripts to manipulate comments & authors in document files using server-side APIs.
Remove Comments from PPT via Python
In order to remove annotations from the PPT 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 PPT - Python
import aspose.slides as slides
with slides.Presentation("example.ppt") 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 PPT via Python
Install Aspose.Slides for Python via .NET. See Installation .
Load PPT with an instance of Presentation class
Iterate over all Authors of loaded PPT
Remove all Comments of an author
Remove all Authors at the end