Saving last page of presentation with notes to PDF fails


#1

The following code:

    String fileName = "/tmp/Powerpoint000537.pptx";
    Presentation presentation = new Presentation(fileName);
    PdfOptions options = new PdfOptions();
    options.getNotesCommentsLayouting().setNotesPosition(NotesPositions.BottomFull);
    int[] slides = new int[1];
    slides[0] = 15;
    presentation.save(fileName + "_page"+ 15+".pdf", slides, SaveFormat.Pdf, options);

Fails with
java.lang.NullPointerException
at com.aspose.slides.BaseSlide.getPresentation(Unknown Source)
at com.aspose.slides.BaseSlide.getPresentation(Unknown Source)
at com.aspose.slides.NotesSlideThemeManager.do(Unknown Source)
at com.aspose.slides.BaseOverrideThemeManager.new(Unknown Source)
at com.aspose.slides.BaseOverrideThemeManager.for(Unknown Source)
at com.aspose.slides.BaseSlide.do(Unknown Source)
at com.aspose.slides.fw.do(Unknown Source)
at com.aspose.slides.fw.new(Unknown Source)
at com.aspose.slides.fw.do(Unknown Source)
at com.aspose.slides.ColorFormat.int(Unknown Source)
at com.aspose.slides.fv.do(Unknown Source)
at com.aspose.slides.fv.do(Unknown Source)
at com.aspose.slides.la.equals(Unknown Source)
at com.aspose.slides.u6.do(Unknown Source)
at com.aspose.slides.u6.do(Unknown Source)
at com.aspose.slides.la.equals(Unknown Source)
at com.aspose.slides.vd.do(Unknown Source)
at com.aspose.slides.vd.do(Unknown Source)
at com.aspose.slides.la.equalsT(Unknown Source)
at com.aspose.slides.Collections.Generic.Dictionary.tryGetValue(Unknown Source)
at com.aspose.slides.am8.do(Unknown Source)
at com.aspose.slides.af0.do(Unknown Source)
at com.aspose.slides.ot.do(Unknown Source)
at com.aspose.slides.r.do(Unknown Source)
at com.aspose.slides.px.do(Unknown Source)
at com.aspose.slides.px.do(Unknown Source)
at com.aspose.slides.bc.do(Unknown Source)
at com.aspose.slides.xn.do(Unknown Source)
at com.aspose.slides.acn.do(Unknown Source)
at com.aspose.slides.SlideCollection.addClone(Unknown Source)
at com.aspose.slides.SlideCollection.insertClone(Unknown Source)
at com.aspose.slides.lk.do(Unknown Source)
at com.aspose.slides.lk.case(Unknown Source)
at com.aspose.slides.lk.do(Unknown Source)
at com.aspose.slides.acs.do(Unknown Source)
at com.aspose.slides.Presentation.do(Unknown Source)
at com.aspose.slides.Presentation.save(Unknown Source)

Using the following file


#2

@russ.nichols,

I have worked with the presentation file shared by you and an issue with ID SLIDESJAVA-37670 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.