Very interesting problem. I have two powerpoint files. One is a general one I created with the latest Office 365 PowerPoint (9 slides, 3MB), and another I downloaded from the web (50+ slides, 3 MB). If I try to get the screenshot of the slides using the built in function GetThumbnail(1.0F, 1.0F)), one works, the other with the 50+ slides blows up like crazy, memory usages goes thru the roof. 100 mb/per slide and eventually runs out of memory.
billboardBytes = File.ReadAllBytes(FileOpenDialogBillboard.FileName) ' Convert PowerPoint to images and load the image slider. Using stream As MemoryStream = New MemoryStream(billboardBytes) Using powerPoint As Presentation = New Presentation(stream) For index As Integer = 0 To powerPoint.Slides.Count - 1 Step 1 billboardSlider.Images.Add(powerPoint.Slides(index).GetThumbnail(1.0F, 1.0F)) Next End Using End Using
We own Aspose.Slides for .NET version 17.7, and tried it also with 20.2. Same thing happens.
The powerpoint that blows up is from this link.