Hi,
I got System.IndexOutOfRangeException:Index was outside the bounds of the array.
when converting a slides to pdf.
Tested OSs were Win7 and Win10
.NET target platform is .net 6.0
Using SDK: Aspose.Slides for .Net 24.4
Using code
void testToPdf (string filename)
{
// Instantiates a Presentation class that represents a PowerPoint file, it could be PPT, PPTX, ODP etc.
Presentation presentation = new Presentation(filename);
// Saves the presentation as a PDF
presentation.Save(filename + ".out.pdf", SaveFormat.Pdf);
}
Exception details
System.IndexOutOfRangeException
HResult=0x80131508
Message=Index was outside the bounds of the array.
Source=Aspose.Slides
StackTrace:
在 .(Int32 , Int32 , [,] , [,] , [,] , , , , , , , , , , )
在 .()
在 …ctor(Table )
在 Aspose.Slides.Cell.()
在 .(Cell , e )
在 e.( , )
在 Aspose.Slides.TextStyle.()
在 .(ParagraphFormat )
在 e.[TLocalData,TEffectiveData](TLocalData )
在 e.( , )
在 Aspose.Slides.ParagraphFormat.()
在 e…ctor(Paragraph )
在 e.(Paragraph , Int32 )
在 e.(TextFrame , Int32 )
在 e.e( , )
在 e.e( )
在 e.(Boolean )
在 Aspose.Slides.Shape.get_Frame()
在 Aspose.Slides.Shape.get_X()
在 .( , Shape , InterruptionToken )
在 .( , , InterruptionToken )
在 e.( , , InterruptionToken )
在 e.( , IShapeFrame , , Boolean , Boolean , InterruptionToken )
在 Aspose.Slides.Slide.(Boolean , , , List`1 , InterruptionToken )
在 .(Presentation , Stream , Int32[] , PdfOptions , InterruptionToken )
在 .(Presentation , Stream , PdfOptions , InterruptionToken )
在 Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
在 Aspose.Slides.Presentation.Save(String fname, SaveFormat format)
在 Program.<$>g__testToPdf|0_1(String filename) 在 C:.NET\ConsoleApp.Slides\ConsoleApp2\Program.cs 中: 第 23 行
在 Program.$(String[] args) 在 C:.NET\ConsoleApp.Slides\ConsoleApp2\Program.cs 中: 第 27 行
Using file:
维修业务激励制度3.0 培训.pptx.7z (134.9 KB)