We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How can you add a new slide to an existing PresentationEx object?

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);
coverSlide = presentation.getSlides().get(1);

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)

Hi peter,

Thanks for your interest in Aspose.Slides.

We regret to inform you that the issue that you have specified is a problem in the Aspose.Slides for Java version 2.1.0. An issue with issue ID 14461 has already been created on our Issue Tracking System to fix the problem. We are planning to release an intermediate version of Aspose.Slides for Java hopefully on next week end, in which this issue has been resolved. This thread has also been associated with issue ID 14461, so that you can be automatically notified as soon as new version is available online.

We are sorry for your inconvenience.

The issues you have found earlier (filed as 14461) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.