While testing the scenario using 23.10 version of the API, we could not notice such an exception. Can you please try to test with the latest version and let us know in case you still notice any issues.
Can you please try using Aspose.Pdf.Drawing instead of Aspose.PDF for .NET? Please uninstall existing Aspose.PDF package from your project and install Aspose.Pdf.Drawing instead from NuGet Package Manager. You would not need to change anything in the code. If issue still persists, please share complete environment details with us. We will log an investigation ticket and share the ID with you.
We request you please try the latest available version. In case your license is not valid for the latest version, please obtain a temporary license which will allow you to use the latest version and evaluate it. We will continue logging the ticket in case issue still happens with the latest version. We are sorry for the trouble.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-55876
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.