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.
- Install Aspose.Slides for Python via .NET.
- Open the PPT file with
Presentation. - Iterate through
comment_authorsand clear each author’scommentscollection. - Clear the
comment_authorscollection. - Call
savewithSaveFormat.PPTto write the updated PPT presentation.
Built with Aspose.Slides
Remove PPT Comments Online
The free Aspose.Slides Annotation app is built with Aspose.Slides for Python via .NET, the same API as the code above. Open it and see what the API can do with your own PPT files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides removes comments before you write code.
- Remove all comments from your PPT file.
- Download the cleaned file.
Other Supported Annotation Formats
Using Python, you can also remove annotations from other formats.