Hey,
I'm having some trouble transforming a .pptx file to html. Here is the code
File pptx = new File("some_path");
try {
PresentationMLPackage source = PresentationMLPackage.load(pptx);
Iterator partIterator = source.getParts().getParts().entrySet().iterator();
while (partIterator.hasNext()) {
Map.Entry pairs = (Map.Entry) partIterator.next();
Part p = (Part) pairs.getValue();
if (p instanceof SlidePart) {
ResolvedLayout rl = ((SlidePart) p).getResolvedLayout();
System.out.println(XmlUtils.marshaltoString(rl.getShapeTree(), false, true, Context.jcPML,
"http://schemas.openxmlformats.org/presentationml/2006/main", "spTree", GroupShape.class));
SvgExporter.svg(source, rl);
}
}
} catch (Docx4JException e) {
e.printStackTrace();
} catch (Exception e) ...