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

Free Support Forum - aspose.com

Having an issue converting slides to images

I’ve attached the slide that is causing us issues. This was found in production by a client. Once the slide is converted to an image you will see that the line height becomes very large and pushes the text off the bottom of the slide.

Please advise.

Hi James,


Thanks for your interest in Aspose.Slides.

I have worked with the presentation file shared by you using Aspose.Slides for .NET 7.5.1 and have not been able to observe the issue. For your kind reference, I have attached the generated thumbnail and sample code. Please share, if I may help you further in this regard.

public static void PptThumbnail(String path, String file)
{
Presentation pres = new Presentation(path + file);

for (int i = 1; i <= pres.Slides.LastSlidePosition; i++)
{
try
{
System.Drawing.Image thumbBitmap = pres.GetSlideByPosition(i).GetThumbnail(2, 2);
thumbBitmap.Save(path + “Slides//Slide_” + i.ToString() + “.png”, System.Drawing.Imaging.ImageFormat.Png);
}
catch (Exception e)
{
Console.WriteLine(“Slide :” + i.ToString() + " has problem in thumbnail generation");
Console.WriteLine(e.StackTrace);
}
}

}

Many Thanks,