// Adding Empty slide
pres.getSlides().addEmptySlide(pres.getLayoutSlides().get_Item(0));
// Adding Author
ICommentAuthor author = pres.getCommentAuthors().addAuthor("Aspose", "AS");
// Position of comments
java.awt.geom.Point2D.Float point = new java.awt.geom.Point2D.Float(0.2f, 0.2f);
java.util.Date date = new java.util.Date();
// Adding slide comment for an author on slide 1
author.getComments().addComment("Hello Mudassir, this is slide comment",
pres.getSlides().get_Item(0), point, date);
// Adding slide comment for an author on slide 1
author.getComments().addComment("Hello Mudassir, this is second slide comment",
pres.getSlides().get_Item(1), point, date);
// Accessing ISlide 1
ISlide slide = pres.getSlides().get_Item(0);