Dear chand,
Thanks for considering Aspose.Slides for JAVA.
You should pass a new TreeMap object, no matter you clear it.
Also, you need to use cloneSlide method of correct presentation.
Further, your loop should start from 1 till getLastSlidePosition
The code will look like this.
com.aspose.slides.Presentation preso= new com.aspose.slides.Presentation();
com.aspose.slides.Presentation part = new com.aspose.slides.Presentation(mv.getFileBlob().getBinaryStream());
com.aspose.slides.Slides slides= part.getSlides();
for(int s =1;s<=slides.getLastSlidePosition();s++){
part.cloneSlide(part.getSlides().get(s),preso.getSlides().getLastSlidePosition()+1,preso,new TreeMap());
}
Many Thanks and Kind Regards,
Shakeel Faiz
Support Engineer
Aspose Tyumen Team