We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Different result of Aspose API updateFields() on different Linux Version

Hi,


I am running a simple code of updating fields inside a document. I am afraid same api is giving different result in different Linux version i.e Linux 5 and Linux 6, both having same jvm.

Sample Code:

doc1 = new Document(getFilePath(folder, file1));
doc1.updateFields();

Automatic TOc which is in the document is updated differently.
Linux 5: document Toc is updated correctly.
Linux 6: document Toc is not updated correctly.

Attaching the imput document and the result document as well as the snapshot of differences.
doc1 : NotUpdated.docx
linux 5 generated doc : finalDoc_linux5.docx
linux 6 generated doc :finalDoc_linux6.docx

Please suggest any possible solution to this problem.

Thanks
Shubhangi

Hi Shubhangi,


Thanks for your inquiry. We have tested the scenario on Linux CentOS 6.5 using Aspose.Words for Java 17.4 and unable to notice reported issue. Furthermore, you are using a quite old version of Aspose.Words for Java i.e. 15.11. Please download and try latest version of Aspose.Words for Java. it will resolve the issue. However, if the issue persists then please share your environment details here, we will further look into the issue and will guide you accordingly.

Best Regards,