NotesSlide — Aspose.Slides FOSS for Java API Reference
The NotesSlide class represents a notes slide in a presentation. It extends BaseSlide and implements INotesSlide.
Package: org.aspose.slides.foss
import org.aspose.slides.foss.*;public class NotesSlide extends BaseSlide implements INotesSlideInheritance
BaseSlide -> NotesSlide
Properties
| Property | Type | Access | Description |
|---|---|---|---|
getNotesTextFrame() | ITextFrame | Read | Text frame containing the speaker notes. |
getHeaderFooterManager() | INotesSlideHeaderFooterManager | Read | Header/footer manager for the notes slide. |
getParentSlide() | ISlide | Read | The presentation slide this notes slide belongs to. |
getPresentation() | IPresentation | Read | Parent presentation. |
Usage Examples
Read Speaker Notes
import org.aspose.slides.foss.*;
Presentation prs = new Presentation("deck.pptx");
ISlide slide = prs.getSlides().get(0);
INotesSlideManager mgr = slide.getNotesSlideManager();
INotesSlide notes = mgr.getNotesSlide();
if (notes != null) {
ITextFrame tf = notes.getNotesTextFrame();
System.out.println("Notes: " + tf.getText());
}Add or Update Speaker Notes
INotesSlide notes = slide.getNotesSlideManager().addNotesSlide();
notes.getNotesTextFrame().setText("Remember to demo the chart.");
prs.save("with-notes.pptx", SaveFormat.PPTX);