Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Fri Jan 13, 2017 8:55 am

Hello,

I came accros a StackOverflowException with the ISlide.SaveAsImage() method, using the attached PPTX file.
It contains one slide, with a converging radial diagram of 5 elements.

The C# code used to convert it is :

Code: Select all
string inputFilePath = "test.pptx";
string outputDirPath = "thumbs";

using (SpirePres.Presentation presentation = new SpirePres.Presentation())
{
   presentation.LoadFromFile(inputFilePath);
               
    string fileName;

    for (int i = 0; i < presentation.Slides.Count; i++)
    {
      fileName = "thumbnail_" + i + ".jpg";

      using (Image img = presentation.Slides[i].SaveAsImage())
        {
         img.Save(Path.Combine(outputDirPath, fileName), System.Drawing.Imaging.ImageFormat.Jpeg);
        }
   }
}


If the diagram only contains the root element, no exception is thrown.

testnob
 
Posts: 7
Joined: Mon Apr 06, 2015 3:18 pm

Fri Jan 13, 2017 9:23 am

Dear testnob,

Thanks for your inquiry.
I have noticed the issue and posted it to our Dev team. Once it is fixed, we will inform you.
Sorry for inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Wed Mar 01, 2017 7:17 am

Dear testnob,

Thanks for waiting.
Now the issue has been fixed in Spire.Presentation Pack Hotfix Version:2.7.39, welcome to test it.
Looking forward to your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Mon Mar 06, 2017 8:42 am

Hello,

thank you for your answer : I'm going to test this hotfix this week and let you know.

testnob
 
Posts: 7
Joined: Mon Apr 06, 2015 3:18 pm

Mon Mar 06, 2017 2:44 pm

I can confirm the bug is fixed.

Thank you !

testnob
 
Posts: 7
Joined: Mon Apr 06, 2015 3:18 pm

Tue Mar 07, 2017 1:28 am

Dear testnob,

Thanks for your feedback.
Please feel free to contact us if there is any question, we are here for help :) .

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.Presentation