"Incorect file format" Exception thrown from Document(Stream) ctor

Over the last month or so, just a small percentage of the PDFs my application processes have started throwing this exception when I attempt to create a new Document object from a MemoryStream of the PDF. I’ve attached one example of a PDF that causes the exception.

Unfortunately, I am currently using an older version of Aspose.Pdf, but upgrading would be very difficult right now.

Any suggestions as to why only a small percentage of my documents would now start throwing this exception from the Document ctor?

Thank you very much.

200_Braeshire_Dr_K_resale_cert-2_(1)_(1).pdf (435.2 KB)

@edamron

Thanks for contacting support.

I have tested the scenario with latest version Aspose.Pdf for .NET 17.6 and was unable to notice the issue. Please note that it is always recommended to use the latest version of the API because it contains all fixes and enhancements.

Moreover fixes against issues in older version of the API are provided in latest version. It will really be appreciated if you please use latest version of the API and in case if you still face any further issue, please feel free to contact us.


Best Regards,
Asad Ali