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

Free Support Forum - aspose.com

Error with message Pages count is 0!: v4.6.0.0

Hi,

I am trying to split the pdf using the sample code attached and the pdf attached. Trying to split with the range of pages; getting the below error:

Excetption.ToString():

Exception information: System.IO.IOException: Pages count is 0!: v4.6.0.0
at xeb116a323308e2f7.x088a7b5025029c50.x803b6be93bf20fc9(ArrayList xdbfa4f7e41391e71)
at xeb116a323308e2f7.xcd769e39c0788209.close(ArrayList commonPageResources)

Message: Pages count is 0!: v4.6.0.0

Stacktrace: at Aspose.Pdf.Kit.PdfFileEditor.Extract(String inputFile, Int32[] pageNumber, String outputFile)

Please advise how I can solve this problem?

Thanks,

Subba

Hi Subba,

Can you please try to use the latest version at your end and see if it helps in your scenario? If it still doesn’t resolve your issue then please do let us know.

We’re sorry for the inconvenience.
Regards,

got the same error again with the latest verson of 5.0.0.1

Error message got changed to Pages count is 0!: v5.0.0.1

Could you please test with attached pdf and let me know. Thanks.

Hi Subba,

We’ll investigate the issue in detail and you’ll be updated with the results the earliest possible.

We’re sorry for the inconvenience.
Regards,

Hi Subba,

I have again tested this issue at my end using version 5.1.0, but couldn’t reproduce the issue you’re facing. However, at my end using .NET 2.0 I couldn’t get any exception while using .NET 4.0 some other exception was thrown; this is shown below:

Unable to cast object of type ‘xeb116a323308e2f7.x9268cb62a90047a5’ to type ‘xeb116a323308e2f7.x2918fb3cf7f48bc7’.

Please share a small working example with us, which can help us reproduce your particular issue; as in the code snippet you shared, I’m unable to understand how you’re specifying the split points and creating the temp files. Please attach the sample project you’re having problem with, so we could test the issue using that.

We’re sorry for the inconvenience and looking forward to help you out.
Regards,

The exception you are getting is the same I am getting. What was the reason for unable to cast object of type to type?

We are using .net framework 3.5

forget about my code and say you are splitting the given pdf of pages 2,3 with .net frame work 3.5 and see what error you are getting.

Hi Subba,

I have again tested this issue using .NET 3.5 and received the same InvalidCastException. I have logged this issue as PDFKITNET-22400 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,

The issues you have found earlier (filed as 22400) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Thank you. This error is fixed but while trying the attached pdf, it is giving the below error -

Unable to cast object of type 'xeb116a323308e2f7.xae94bcfc1c7ddd9a' to type 'xeb116a323308e2f7.x0b25947bdf0fba40'.

stack trace -

at Aspose.Pdf.Kit.PdfFileInfo.xe9a17d28df670f4d()
at Aspose.Pdf.Kit.PdfFileInfo..ctor(String inputFile)

The code that is used to generate that error is -

var pdf = new PdfFileInfo("C:\\Rent roll_errored.pdf");

return pdf.NumberofPages;

Hi Subba,

We’re looking into this issue at our end and you’ll be updated shortly.

We’re sorry for the inconvenience.
Regards,

Hi Subba,

I have reproduced this problem at my end and logged it as PDFKITNET-23545 in our issue tracking system. Our team will look into this issue in detail and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,

Hi,

The issue became critical for us. The errors are happening with many pdfs where we have static headers. Another example that you can try is attached here.

Please let us know at the earliest.

Thanks,

Subba

Hi Subba,

As far the file TS2341.pdf is concerned, I couldn’t notice any issue with our latest hotfix. You may download the latest available version of the API from our website in order to use the fix. If you still find any issue with this file, please do let us know.

Regarding the issue logged previously, I would like to share with you that it is not yet resolved. However, I have asked our team to share the ETA of this issue. You’ll be updated via this forum thread once the ETA is available.

We’re sorry for the inconvenience.
Regards,

What is the hotfix contains, does it affect any my current functionality in build 4.6.0.0 of Aspose.pdf.kit.dll? We willn’t have resources to test all the possible scenarios so, it needs to be release builds that I should promote to production.

Hi Subba,

We have introduced many new features and fixes since version 4.6.0. However, there are no breaking changes; your code should be working fine with the latest version, provided your license works with the latest release/hotfix. Just so you know, you can upgrade to any version published during one year of your license purchase. If you want to upgrade to a version published after one year, you’ll have to renew the license as well. Please download the latest hotfix and try at your end.

I hope this helps. If you have any further questions, please do let us know.
Regards,

Hi,

I have Aspose.pdf.dll version 4.5.0.0 and this hotfix version Aspose.pdf.kit.dll with 5.3.1.0, does this cause any issue having two different version dlls?

If you have any update on Rent Roll errorerd.pdf, please let me know.

Thanks,

Subba Mallela

Hi Subba,

There is no problem using DLLs of different components together; it doesn’t matter if they have different versions. In your case, it looks like that you want to use Aspose.Pdf and Aspose.Pdf.Kit together; that is absolutely fine.

However, you can’t use two versions of the same component, in a single project; for example, it is not feasible to use Aspose.Pdf.Kit 4.5.0 along with Aspose.Pdf.Kit 5.3.1 etc.

Moreover, the issue with the file Rent Roll errorerd.pdf is resolved in our upcoming monthly release; the release will be available next week.

I hope this helps. If you find any further questions, please do let us know.
Regards,

Hi,

Can you tell me when the release is available with Rent Roll pdf error fixed? I would like test and release it.

Thanks,

Subba

The issues you have found earlier (filed as 23545) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Hi,

Iam getting message System.NullReferenceException: Trailer object is null.: v5.4.0.0 after loading the attached pdf and calling NumberofPages property. Can you please see what is the issue with the attached pdf.

var pdf = new PdfFileInfo(@"C:\\ErrorPDF_Aug5.pdf");

return pdf.NumberofPages;

Thanks,

Subba