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.