- Code: Select all
ArrayList<Object[]> lista =new ArrayList<>();
Object[] diapositivas = new Object[3];
for (int i=0;i<3;i++){
diapositivas[i] =(SlidePart) presentationMLPackage.createSlidePart(pp, layoutPart,
new PartName("/ppt/slides/" + [i + 1] + ".xml"));
Shape sample = ((Shape)XmlUtils.unmarshalString(SAMPLE_SHAPE, Context.jcPML) );
diapositivas[i] =diapositivas[i].getJaxbElement().getCSld().getSpTree().getSpOrGrpSpOrGraphicFrame().add(sample);
lista.add(diapositivas);
}
what am i doing wrong here? how can i create several slides that say hellow world in the same file?