XSLFSlideShow slideShow = (XSLFSlideShow) extractor.getDocument();
XMLSlideShow xmlSlideShow = new XMLSlideShow(slideShow);
XSLFSlide[] slides = xmlSlideShow.getSlides();
for (XSLFSlide slide : slides) {
CTSlide rawSlide = slide._getCTSlide();
CTSlideIdListEntry slideId = slide._getCTSlideId();
CTNotesSlide notes = xmlSlideShow._getXSLFSlideShow().getNotes(
slideId);
CTCommentList comments = xmlSlideShow._getXSLFSlideShow()
.getSlideComments(slideId);
xhtml.startElement("div");
extractShapeContent(rawSlide.getCSld().getSpTree(), xhtml);
if (comments != null) {
for (CTComment comment : comments.getCmArray()) {
xhtml.element("p", comment.getText());
}