Aspose PDF .NET version 19.8 spend too much time to load PDF files



After upgrading Aspose PDF .NET to version 19.5, I have a big problem when loading some broken PDF files. In the previous version before I upgrading (Aspose PDF .NET 17.2), the broken file can be loaded under 5 seconds and throw exception, but with new version, it took more than 1 minute to load and throw exception. I tried with lastest version (19.8) but can’t resolve the issue.

Here is my sample code:

string input = @"D:\sample_file.pdf";
Document pdfDocument = new Document(inputFile);
catch(Exception e)

Here is my sample: (3.8 MB)

Please check this issue.

Thank you.



Thank you for contacting support.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFNET-46814 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.