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