Hi
I believe any PDF will cause crash, so not attaching any here.
The following code can be used to replicate the crash
String filepath = "<path to some pdf>";
using (MemoryStream stream = new MemoryStream(File.ReadAllBytes(filepath)))
{
using (Document pdfDocument = new Document(stream))
{
using (var info = new Aspose.Pdf.Facades.PdfFileInfo(stream))
{
info.UseStrictValidation = true;
var v2 = info.IsPdfFile; // causes the crash later on, but only when UseStrictValidation is true
}
for (int i = 1; i <= pdfDocument.Pages.Count; i++)
{
Page page = pdfDocument.Pages[i]; // Crash! System.ObjectDisposedException: 'Cannot access a closed Stream.'
}
}
}
}