I’ve tried following to add a note to first slide, but it did not work.
Could someone please provide sample code to add note in java?
Thanks,
//////////////////////////////////////
final ISlideCollection slds = presentation.getSlides();
final INotesSlide NotesSlide = slds.get_Item(0).addNotesSlide();
NotesSlide.getShapes().get_Item(0).setAlternativeText(“Test!”);
Hi Yong,
Please see the following sample code to add notes in a slide using Aspose.Slides for Java.
Presentation pres = new Presentation(“D:\Data\Files\Files\input.pptx”);
final ISlideCollection slds = pres.getSlides();
final INotesSlide NotesSlide = slds.get_Item(0).addNotesSlide();
NotesSlide.getNotesTextFrame().setText(“Hello”);
pres.save(“d:\data\notes.pptx”,SaveFormat.Pptx);
Please feel free to contact support in case you need any further assistance.
Thanks & Regards,
Many thanks, it works.