Hello,
You should see the cloneslide demo code. You can find it aspose.slides\examples\cloneslide directory, when you unzip Aspose.Slides for JAVA.
For your convenience, I have also attached its code.
You should note down few things. Always use Presentation.getSlideByPostion() to get reference to normal slide and position starts from 1, don’t use Presentation.getSlides().get()
Also, note down the order of the Presentation object for cloneslide method.
If you are cloning slide from pres1 to pres2, it will look like this
pres1.CloneSlide(pres1Slide, slideposition, pres2, new TreeMap());
Many Thanks and Kind Regards,
Shakeel Faiz
Support Engineer
Aspose Tyumen Team