We were able to reproduce this issue in our environment while using Aspose.PDF for Java 19.7. Hence, we have logged it as PDFJAVA-38746 in our issue tracking system for sake of correction. We will further look into details of this issue and keep you posted with the status of its rectification. Please be patient and spare us little time.
Please note that the issue has been logged under free support model and will be investigated on first come first serve basis. Therefore, it may take some more months to resolve. As soon as we have some definite updates regarding ticket resolution, we will let you know.
Furthermore, we also offer paid support model where issues are resolved on urgent basis and have priority over the issues logged under free support model. You may check our Paid Support options for your reference.