Stop conversion if conversion taking more than specified time for Java version

I am using Aspose words 19.3 to convert word to pdf
however, when word document contains too many revisions
conversion will take a long time, how can I stop it?

I find at this topic Stop conversion if conversion taking more than specified time that you have provided this feature for .NET at version 22.1

but I did not find it fixed in Java version even at the latest version Aspose Words 22.9, will you provide this feature in the future Java version?
Thanks

@wilsonsu This feature is also availabel in Aspose.Words for Java. You can use IDocumentSavingCallback

You ca find a code examples in our .NET documentation, you can easily translate them to Java:
https://reference.aspose.com/words/net/aspose.words.saving/idocumentsavingcallback/

However, in your case the problem most likely occurs upon document layout process. So you can consider using IPageLayoutCallback.

Also, could you please attach the problematic document here for testing? We will check the issue and provide you more information.