Search in sources :

Example 1 with NotesDocument

use of org.openxmlformats.schemas.presentationml.x2006.main.NotesDocument in project poi by apache.

the class XSLFSlideShow method getNotes.

/**
	 * Returns the low level notes object for the given
	 *  slide, as found from the supplied slide reference
	 */
@Internal
public CTNotesSlide getNotes(CTSlideIdListEntry slide) throws IOException, XmlException {
    PackagePart notesPart = getNodesPart(slide);
    if (notesPart == null)
        return null;
    NotesDocument notesDoc = NotesDocument.Factory.parse(notesPart.getInputStream(), DEFAULT_XML_OPTIONS);
    return notesDoc.getNotes();
}
Also used : PackagePart(org.apache.poi.openxml4j.opc.PackagePart) NotesDocument(org.openxmlformats.schemas.presentationml.x2006.main.NotesDocument) Internal(org.apache.poi.util.Internal)

Aggregations

PackagePart (org.apache.poi.openxml4j.opc.PackagePart)1 Internal (org.apache.poi.util.Internal)1 NotesDocument (org.openxmlformats.schemas.presentationml.x2006.main.NotesDocument)1