Would you please share source and generated files as ZIP so that we may try to reproduce and investigate it in our environment. Before sharing requested data, please ensure using Aspose.PDF for Java 19.7.
I tried the same with Aspose.PDF 19.7 and results are the same. I have shared the files with you. Please let me know if you need anything else. Thanks for looking into this!
We have been able to notice the differences in generated files. A ticket with ID PDFJAVA-38763 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.
The issue has just been logged and needs further investigations. Once it is investigated, we will then be able to share further details. We have recorded your requirements of expected output and will keep you posted once the information will be available.