import aspose.slides as slides import aspose.pydrawing as drawing import datetime # Create or load presentation with slides.Presentation() as presentation: # Add empty slide presentation.slides.add_empty_slide(presentation.layout_slides[0]) # Add author and comment author = presentation.comment_authors.add_author("Usman", "MF") comment = author.comments.add_comment("Hello, this is slide comment.", presentation.slides[0], drawing.PointF(0.2, 0.2), datetime.date.today()) # Add reply comment reply = author.comments.add_comment("This is the reply to the comment.", presentation.slides[0], drawing.PointF(0.2, 0.2), datetime.date.today()) reply.parent_comment = comment # Add reply comment reply2 = author.comments.add_comment("This is second reply.", presentation.slides[0], drawing.PointF(0.2, 0.2), datetime.date.today()) reply2.parent_comment = comment # Save presentation presentation.save("ppt-comments.pptx", slides.export.SaveFormat.PPTX)