We are using Aspose.PDF for Java in our product (version 21.10). We occasionally see the following error when calling com.aspose.pdf.Page.getPageRect(false):
Value cannot be null.
Parameter name: trailerable
This is coming from a com.aspose.pdf.internal.ms.System.lk exception being thrown. I have not been able to find any information online about what this error means. Also, I’m not sure if this is an Aspose bug or if this is expected behavior. If it is expected behavior, I’m not sure why an internal exception is being thrown.
@atcollins06
Can you please try using the latest version of the API and see if error still persists? Also, does it occur with specific PDF files? Please share sample document with us along with minimal code to reproduce the issue so that we can further proceed accordingly if issue is still occurring with the latest version of the API.
Unfortunately, I don’t have ready access to the file since our app doesn’t currently save it if it fails to process. So, at the moment, I can’t reproduce it.
Is it expected that calling code should see a com.aspose.pdf.internal.ms.System.lk exception?
@atcollins06
Sorry for the delayed response. We are afraid that we cannot determine the issue without replicating the issue in our environment. For the purpose, we requested information in our previous message. If possible, could you please provide that so that we can further proceed accordingly.
Understood. As mentioned, I don’t currently have access to a file that is causing the issue. I will try see if we can make changes to our application so that we capture the file next time this issue occurs.
@atcollins06
Sure, please take your time to gather the information and let us know once you are able to share it. We will further proceed accordingly.