Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Jan 15, 2019 3:08 pm

TRACE:
|ERROR| [traceId: 0HLJQUFA8P6HE:00000014]: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Spire.Pdf.PdfPageBase.ᜀ(Image[] A_0, List`1& A_1)
at Spire.Pdf.PdfPageBase.ᜀ(Boolean A_0, List`1& A_1)
at Spire.Pdf.PdfPageBase.get_ImagesInfo()

C# Code:
using (var doc = new Spire.Pdf.PdfDocument())
{
doc.LoadFromStream(pdfStream);
for (var i = 0; i < doc.Pages.Count; i++)
{
PdfPageBase page = doc.Pages[i];
var pdfImageInfos = page.ImagesInfo; // Exception is thrown at that line

I was testing the library and it failed for the pdf provided.

zeroeagle1
 
Posts: 2
Joined: Tue Jan 15, 2019 3:02 pm

Wed Jan 16, 2019 3:39 am

Hi,

Thanks for your inquiry.
I have reproduced the issue and logged it in our bug tracking system. We will let you know as soon as it is fixed.
Sorry for the inconvenience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Sat Jan 19, 2019 2:26 pm

Hi,

Glad to inform you that the issue is solved in Spire.PDF Pack(Hot Fix) Version:5.1.16. Please download it and have a try.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/5.1.16

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Fri Jan 25, 2019 8:43 am

Hi,

Hope you are doing well.
Do you use the hotfix? Has your issue been resolved?

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Wed Jan 30, 2019 11:18 pm

Yes resolved thank you !

zeroeagle1
 
Posts: 2
Joined: Tue Jan 15, 2019 3:02 pm

Thu Jan 31, 2019 2:04 am

Hi,

Thanks for your feedback.
Please feel free to contact us if there is any question.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.PDF

cron