Exception is not Captured for the corrupted file

Hi Aspose,

The file corrupted exceptions not throwing while reading the below attached corrupted file in the latest version of Aspose v22.3 where as its working fine in the version 20.3

*** Code Snip set ***

String sr = new FileStream(sFileName, FileMode.Open, FileAccess.Read);
Document pdfdoc = new Document(sr, true); // Here we not getting exception where as v20.3 version we are getting exception.

*** Code Snip set ***

0015_corrupted.pdf (7.4 KB)

Please check and let us know the details.

@iarabhavi

We have tested the scenario using the latest version of Aspose.PDF for .NET 22.4 and have not found the shared issue. Please make sure that you are using the same PDF file at your end.