PPT
PPTX
ODP
PPS
POT
PPTX
Remove Comments and Comment Authors from PPTX in Python
Use Aspose.Slides for Python via .NET to remove presentation comments and their associated authors.
Remove Comments from PPTX via Python
Aspose.Slides for Python via .NET
provides access to the comments and comment authors stored in a PPTX presentation. Load the file with Presentation, clear each author’s comments collection, clear comment_authors, and save the result in PPTX format.
Remove Comments from PPTX in Python
with slides.Presentation("presentation.pptx") as presentation:
for comment_author in presentation.comment_authors:
comment_author.comments.clear()
presentation.comment_authors.clear()
presentation.save("presentation-without-comments.pptx", slides.export.SaveFormat.PPTX)
How to Remove Comments from PPTX via Python
Follow these steps to remove all comments and comment authors from a PPTX presentation.
Install Aspose.Slides for Python via .NET .
Open the PPTX file with
Presentation.Iterate through
comment_authorsand clear each author’scommentscollection.Clear the
comment_authorscollection.Call
savewithSaveFormat.PPTXto write the updated PPTX presentation.