Hello and thank you for getting back to me. Attached you will find the input PPT and also the Output PPT.
The Output one contains the error when it is opened.
On the Input PPT you will also see the images and their effects applied to make them look grey.
In addition, I am also attaching the corrected files on our side, so that you can compare in case this helps.
The code snippet:
int i = 1;
for (String filename: modules) {
Presentation from = new Presentation(filename);
for (IShape shape : from.getSlides().get_Item(0).getSlide().getShapes()) {
IShape clonedShape = to.getSlides().get_Item(0).getSlide().getShapes().addClone(shape,
shape.getX() + frontLayout.getX(i),
shape.getY() + frontLayout.getY(i),
shape.getWidth(),
shape.getHeight());
clonedShape.setRotation(shape.getRotation());
}
++i;
}
BestASPOSE.zip (629.8 KB)