*/
@Override
protected List<PackagePart> getMainDocumentParts() throws TikaException {
List<PackagePart> parts = new ArrayList<PackagePart>();
XMLSlideShow slideShow = (XMLSlideShow) extractor.getDocument();
XSLFSlideShow document = null;
try {
document = slideShow._getXSLFSlideShow(); // TODO Avoid this in future
} catch(Exception e) {
throw new TikaException(e.getMessage()); // Shouldn't happen
}
for (CTSlideIdListEntry ctSlide : document.getSlideReferences().getSldIdList()) {
// Add the slide
PackagePart slidePart;
try {
slidePart = document.getSlidePart(ctSlide);
} catch(IOException e) {
throw new TikaException("Broken OOXML file", e);
} catch(XmlException xe) {
throw new TikaException("Broken OOXML file", xe);
}