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)
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.
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,
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.
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.
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.
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.
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.
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,
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.
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,
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");
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.