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

Free Support Forum - aspose.com

ArgumentOutOfRangeException in java (and .NET) when doing `renderToGraphics`

The attached document fails to parse using Aspose.Slides 18.12 in Java (and also fails in .NET).

RD48-Crash.zip (16.0 KB)

The code snippet to reproduce in .NET (similar code in Java not shown) is:

namespace AsposePowerPoint
{
    class Program
    {
        static void Main(string[] args)
        {
            var notesOptions = new NotesCommentsLayoutingOptions();

            var deck = new Presentation(@"RD35-Crash.pptx");
            foreach (var s in deck.Slides)
            {
                var bmp = new Bitmap(740, 960);
                using (Graphics graphics = Graphics.FromImage(bmp))
                {
                    s.RenderToGraphics(notesOptions, graphics);
                }
            }
        }
    }
}

and the exception thrown (in java) is:

class com.aspose.slides.exceptions.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: Parameter name: index
com.aspose.slides.Collections.Generic.List.get_Item(Unknown Source)
com.aspose.slides.SlideCollection.get_Item(Unknown Source)
com.aspose.slides.lj.do(Unknown Source)
com.aspose.slides.lj.do(Unknown Source)
com.aspose.slides.lj.do(Unknown Source)
com.aspose.slides.Slide.do(Unknown Source)
com.aspose.slides.Slide.renderToGraphics(Unknown Source)

@rocketraman,

I have observed your comments. A ticket with ID SLIDESJAVA-37549 has been created in our issue tracking system to further investigate issue on our end. This thread has been linked with the issue so that you may be notified once the issue will be fixed.