//Clone the desired slide to the end of the collection of slides in the same PPTX
ISlideCollection slds = pres.getSlides();
slds.addClone(pres.getSlides().get_Item(0));
//Write the modified pptx to disk
pres.save("data/AsposeClone.pptx", SaveFormat.Pptx);
//Printing the status
System.out.println("Slide cloned successfully!");
}
}