OverflowException Occurs when Loading PowerPoint Presentation in C#

Hi,

I got System.OverflowException:Arithmetic operation resulted in an overflow. when loading a slide.
Tested OSs were Win7 and Win10
.NET target platform is .net 6.0
Using SDK: Aspose.Slides for .Net 24.3
Using file:

123.PPTX.ZIP.ppt.7z (2.9 MB)

@kngstr,
Thank you for contacting support.

The presentation file you provided is password-protected. Aspose.Slides was not able to load the presentation. You should load the presentation as follows:

var loadOptions = new LoadOptions
{
    Password = "***********"
};

using var presentation = new Presentation("123.PPTX.ZIP.ppt", loadOptions);

You can also check if the presentation is password-protected as follows:

var prepsentationInfo = PresentationFactory.Instance.GetPresentationInfo("123.PPTX.ZIP.ppt");
Console.WriteLine("Is encrypted: " + prepsentationInfo.IsEncrypted); // true

More examples:
Password Protected Presentation|Aspose.Slides Documentation

@andrey.potapov

Thanks. I know it.
But even though I do not provide the password.
It should not be OverflowException.

@kngstr,
Thank you for the note. I am working on the issue and will get back to you soon.

@kngstr,
Thank you for your patience. I reproduced the error you described.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44521

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.