Search in sources :

Example 1 with SldDocument

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

the class XSLFSlideShow method getSlide.

/**
	 * Returns the low level slide object from
	 *  the supplied slide reference
	 */
@Internal
public CTSlide getSlide(CTSlideIdListEntry slide) throws IOException, XmlException {
    PackagePart slidePart = getSlidePart(slide);
    SldDocument slideDoc = SldDocument.Factory.parse(slidePart.getInputStream(), DEFAULT_XML_OPTIONS);
    return slideDoc.getSld();
}
Also used : SldDocument(org.openxmlformats.schemas.presentationml.x2006.main.SldDocument) PackagePart(org.apache.poi.openxml4j.opc.PackagePart) Internal(org.apache.poi.util.Internal)

Aggregations

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