We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Feature like z index or transparency


We are using Aspose Slides for Java.

We need some clarification on the use of images such that we can define which image is above another image.
That is in ppt , the feature is “Bring to front”.

So how can we control the relative positions in z index.


Hi Ritwik,

I have observed the requirement shared and like to share the Aspose.Slides offer Reorder() method in ISlideCollection class to set the order of shapes appearance. Please try using the following sample code approach in your application and tailor this as per your requirement.

Presentation pres=new Presentation(“Test.pptx”);
ISlide slide=pres.getSlides().get_Item(0);

//Setting the z-order of second shape which is picture frame
slide.getShapes().reorder(0, ((IPictureFrame)slide.getShapes().get_Item(1)));

pres.save(“modified.pptx”, SaveFormat.Pptx);

Many Thanks,