Free Support Forum - aspose.com

Error when creating thumbanils from PPT

Hi!

I’m trying to create thumbnails from the attached PPT file using the code below. This causes a NullReferenceException on page 12. I can create thumbnails for all others pages.

Code:

var presentation = new Presentation(sourceFile);
int slideWidth = presentation.SlideSize.Width;
int slideHeight = presentation.SlideSize.Height;

for (int j = 1; j <= presentation.Slides.Count; j++)
{
Slide slide = presentation.GetSlideByPosition(j);
var image = slide.GetThumbnail(new Size(slideWidth, slideHeight));

image.Save(destinationFile, ImageFormat.Jpeg);
}

Can you tell me what is wrong with this page?

Thanks,
Dejan

Hi Dejan,


I have worked with the presentation file shared by you and have been able to observe the issue specified for slide 12. An issue with ID SLIDESNET-33777 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 automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESNET-33777) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.