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 INotesSlide

Inheritance

BaseSlide -> NotesSlide


Properties

PropertyTypeAccessDescription
getNotesTextFrame()ITextFrameReadText frame containing the speaker notes.
getHeaderFooterManager()INotesSlideHeaderFooterManagerReadHeader/footer manager for the notes slide.
getParentSlide()ISlideReadThe presentation slide this notes slide belongs to.
getPresentation()IPresentationReadParent 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);

See Also