Creation of Thumbnail with Aspose.Slides for .NET Throws an Exception

Hello,

our customer tries to calculate the thumbnail to a presentation and it fails with an exception.

This is the code we are using:

LoadOptions loadOptions = new LoadOptions
{
    BlobManagementOptions =
    {
        IsTemporaryFilesAllowed = true,
        PresentationLockingBehavior = PresentationLockingBehavior.KeepLocked,
        MaxBlobsBytesInMemory = 52428800,
        TempFilesRootPath = targetFolder
    }
};
using (IPresentation presentation = PresentationFactory.Instance.ReadPresentation(sourceFile, loadOptions))
{
    return presentation.Slides[0].GetThumbnail(1f, 1f);
}

I can reproduce it on windows 11 using .NET 6.0 and aspose.slides.NET 24.4.

The used presentation is attached to this post.

presentation.zip (68.5 KB)

with best regards,

André Necker

@AndreN,
Thank you for contacting support.

Unfortunately, I was unable to reproduce the exception you mentioned. Please check the problem again and share additional information to reproduce the error.

Hello @andrey.potapov ,

I see I attached the wrong file.

Please try again with this one:

slide.zip (50.8 KB)

I get the following exception:

2024-05-06 12:58:21.9868, Error, Thread 1, empower.Presentation.Processor.Cli.Commands.HandleException:
Aspose.Slides.PptxReadException: Input string was not in a correct format.
—> System.FormatException: Input string was not in a correct format.
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
at ..(XmlReader )
at e.(XmlReader ,  )
at ..(XmlReader )
at e.(XmlReader ,  )
at ..(XmlReader )
at e.(XmlReader ,  )
at ..(XmlReader )
at e.(XmlReader ,  )
at ..(XmlReader )
at e.(XmlReader ,  )
at e.(IShapeCollection , IChart , e ,  )
at .(IShapeCollection , e ,  , Boolean )
at .( , IGroupShape ,  )
at .(IGroupShape ,  ,  )
at e.(IBaseSlide ,  ,  )
at .(Slide )
at .(IPresentation )
at .(e , IPresentation )
at .(Presentation , Stream , InterruptionToken )
— End of inner exception stack trace —
at .(Presentation , Stream , InterruptionToken )
at Aspose.Slides.Presentation.(Stream , Boolean )
at Aspose.Slides.Presentation.(Stream , Boolean )
at Aspose.Slides.Presentation.(String , Boolean )
at Aspose.Slides.PresentationFactory.ReadPresentation(String file, ILoadOptions options)

@AndreN,
Thank you for the additional information. I reproduced the exception 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-44560

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.