how can you add a new slide to an existing PresentationEx object?
neither the LayoutSlideEx nor the SlideEx have visible constructors,
so how can I get an instance of these objects if the presentation is empty?
and...even if the presentation has an existing slide, where can get
an instance of a LayoutSlideEx?
the file called test.pptx which contains a single, blank slide,
running the code below throws the following exception on the last line:
PresentationEx presentation = new PresentationEx("c:\\test.pptx");
LayoutSlideEx lse = presentation.getLayoutSlides().get(0);
presentation.getSlides().addEmptySlide(lse);
coverSlide = presentation.getSlides().get(1);
java.lang.NullPointerException
at java.io.ByteArrayInputStream.(ByteArrayInputStream.java:89)
at com.aspose.slides.obfuscated.dt.(SourceFile:13)
at com.aspose.slides.obfuscated.po.do(SourceFile:569)
at com.aspose.slides.pptx.PresentationEx.int(SourceFile:1431)
at com.aspose.slides.pptx.SlidesEx.do(SourceFile:139)
at com.aspose.slides.pptx.SlidesEx.addEmptySlide(SourceFile:118)