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

Free Support Forum - aspose.com

Error saving PDF


I have some code that generates a PDF file. When I call the 'Save' method of the PDF file, the following exception is thrown:

"System.IndexOutOfRangeException: Index was outside the bounds of the array.

at Aspose.Pdf.Document.ඃ.ඳ(Int32 ௱)

at Aspose.Pdf.Figure.༬.ང(Int32 ༠, Single[] ཅ)

at Aspose.Pdf.Xml.ᩄ.ᩇ(Pdf ຼ, ໺ ໰, Image ඬ)

at Aspose.Pdf.Xml.ᩌ.ᩍ(໺ ໰, Pdf ຼ, ౚ ಩, Boolean ᩎ)

at Aspose.Pdf.Xml.―.‖(໺ ໰, Pdf ຼ)

at Aspose.Pdf.Xml.ὢ.ὧ(໺ ໰, Pdf ຼ)

at Aspose.Pdf.Pdf.Save(Stream stream)

at Capgen.Capsure.Reporting.Generator.GenerateReport(Report Report, ReportSearchCriteria Filters, RenderType RenderType, Int32 ImageResolution, String& RawData, Int64 CounterStart, Int64 CounterCount) in C:\Capgen\Capsure.Net\Source\Capsure Reporting\ReportGenerator\Generator.vb:line 53"

This error seems to occur when I add more than 60 pages to the PDF.

I have attached the PDF of the first 60 pages, the further pages would just have been more of the same.

Each page is a new section with 2 text paragraphs and a background image.

What is the cause of this error and how do I resolve it?


Thank you for considering Aspose.

Please make sure you are using the latest version. If it still won't work please provide your project that can reproduce this error.