XSLFSlideShow xsl = new XSLFSlideShow(slideshow.getPackage());
for (int i = 0; i < slides.length; i++) {
CTSlideIdListEntry slideId = slideshow.getCTPresentation().getSldIdLst().getSldIdArray(i);
// For now, still very low level
CTNotesSlide notes =
xsl.getNotes(slideId);
CTCommentList comments =
xsl.getSlideComments(slideId);
if (slideText) {
extractText(new XSLFCommonSlideData(slides[i].getXmlObject().getCSld()), text);
// Comments too for the slide
if (comments != null) {
for (CTComment comment : comments.getCmList()) {
// TODO - comment authors too
// (They're in another stream)
text.append(
comment.getText() + "\n"
);
}
}
}
if (notesText && notes != null) {
extractText(new XSLFCommonSlideData(notes.getCSld()), text);
}
}
} catch (Exception e) {
throw new RuntimeException(e);
}