Free Support Forum - aspose.com

Facing issue while adding empty slide in presentation

Hi,

I want to add a empty slide in a presentation with dynamic text placeholder in it which is present inside the layout. I did it using following code but error here is text placeholder which was added to slide inherited from the layout is incorrect. Layout contains dynamic text placeholder but slide is having static text placeholder.
Please check out the actual result and expected result in a zip.

Code used :
for(int i = 0; i < theme.getLayoutSlides().size(); i++) {
System.out.println(theme.getLayoutSlides().get_Item(i).getName());
if(theme.getLayoutSlides().get_Item(i).getName().equals(slide1.getSlides().get_Item(0).getLayoutSlide().getName())) {
theme.getSlides().addEmptySlide(theme.getLayoutSlides().get_Item(i));
}
}

Zip file contains actual result and expected :
Result.zip (47.3 KB)

Please let me know if I am doing something wrong or aspose slide java library have some issue with it?

Thanks.

@saquibs

Please check the below image for actual and expected presentation files. I am unable to understand the requirement of static v/s dynamic placeholder in an empty layout slide. It would be good, if you may please share more details of your requirements along with snapshots.