We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Error on PageCount with PdfConverter

Get Object reference not set to an instance of an object when trying to get the PageCount from a PdfConverter object after Binding pdf. Other PDF files are fine, attached is the problem PDF. Below is the stack trace

at x30a678191d9b1780.x573da502a3364b6b.x5b81632e5b71b64c(Int32& x67a39b7274cec48f, Int32 x5c4ff2905d409caf, Int32 x820562bfe91b4e71, ImageFormat x0d9146d51b0e6ca4, Int32 x76cfa4602af6a972, Int32& x39b5532b4ddc40a3)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

at x30a678191d9b1780.x573da502a3364b6b.x5b81632e5b71b64c(Int32& x67a39b7274cec48f, ImageFormat x0d9146d51b0e6ca4, Int32 x76cfa4602af6a972, Int32& x39b5532b4ddc40a3)

at Aspose.Pdf.Kit.PdfConverter.xaf6adc9ec3dfd936()

at Aspose.Pdf.Kit.PdfConverter.get_PageCount()

Hi Simon,

First of all, I would like to share with you that I have noticed this issue with the Aspose.Pdf.Kit for .NET. Secondly, we’re going to discontinue Aspose.Pdf.Kit for .NET from October 2011. And we have merged both Aspose.Pdf and Aspose.Pdf.Kit into a single component Aspose.Pdf for .NET.

I have tested this issue with merged Aspose.Pdf for .NET 6.2.0 and it worked fine. Could you please try using the latest merged version at your end as well? If you still find any issue or have further questions, please do let us know.

We’re sorry for the inconvenience.
Regards,