Hi,
Aspose.Slides throws “Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index” exception when converting PPTX to PDF
i am using Aspose.Slides for .NET 17.1 dll in Win 7 64 bit SP1 core i7 3.40GHz with 16 GB RAM. We have Aspose total product family license.
Code:
var slidesLicense = new Aspose.Slides.License();
slidesLicense.SetLicense(licFilePath);
var pres = new Presentation(inputFileName);
var opts = new Aspose.Slides.Export.PdfOptions
{
JpegQuality = 90,
SaveMetafilesAsPng = true,
TextCompression = Aspose.Slides.Export.PdfTextCompression.Flate,
Compliance = Aspose.Slides.Export.PdfCompliance.Pdf15
};
pres.Save(pdfFilePath + "\\" + Path.GetFileNameWithoutExtension(inputFileName) + ".pdf", Aspose.Slides.Export.SaveFormat.Pdf, opts);
Exception:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Sample File:
Please click here to download the sample file ( PPT_Slides.pptx ) in order to trouble shoot the issue: https://drive.google.com/file/d/0Bwb3rTwf5xmCdUUwc2MyQ1F5aTQ/view?usp=sharing
Please note “This is a copyrighted content and this content should not be distributed.”
File Size : 64.9 MB
Thanks
AnbuSelavn