Hi Christer,
Thanks for considering Aspose.Slides.
When you are cloning a slide from some source presentation, the master slide for the cloned slide also gets copied. If you want only the source slide, then in that case you need to change the master of cloned slide with some slide of destination presentation and remove the old master slide from source presentation. Please use the following code snippet for changing slide master and removing older one.
Presentation Pres_Source = new Presentation("D://ppt//Test1.ppt");
Presentation Pres_Dest = new Presentation();
//Cloning Slide
System.Collections.SortedList sList = new System.Collections.SortedList();
Slide NewSlide=Pres_Source.CloneSlide(Pres_Source.Slides[0], 0, Pres_Dest, sList);
//Changing Master slide of cloned presentation
NewSlide.ChangeMaster(Pres_Dest.GetSlideById(d));
//Deleting unused old master of cloned slide
Pres_Dest.DeleteUnusedMasters();
Pres_Dest.Write("D://ppt//Test_Dest.ppt");
For your refernce, I have also attached the source presentation file.
Thanks and Regards,
Mudassir Fayyaz
Support Developer
Aspose Sialkot Team
Contact Us Aspose - The .NET and Java Component Publisher
Keep in touch! We're on
Twitter and
Facebook