PPT
DOCX
XLSX
PDF
ODP
PPTX
Remove Comments & Comment Authors from PPTX in Java
Build your own Java apps to manipulate comments & authors in document files using server-side APIs.
Remove Comments from PPTX via Java
In order to remove annotations from the PPTX file, we’ll use Aspose.Slides for Java API which is a feature-rich, powerful and easy to use document manipulation API for Java platform.
Delete Annotations from PPTX - Java
Presentation presentation = new Presentation("example.pptx");
try {
// Deletes all comments from the presentation
for (ICommentAuthor author : presentation.getCommentAuthors())
{
author.getComments().clear();
}
// Deletes all authors
presentation.getCommentAuthors().clear();
presentation.save("example_out.pptx", SaveFormat.Pptx);
} finally {
if (presentation != null) presentation.dispose();
}
How to Remove Comments from PPTX via Java
Install Aspose.Slides for Java. See Installation .
Load PPTX with an instance of Presentation class
Iterate over all Authors of loaded PPTX
Remove all Comments of an author
Remove all Authors at the end