Word layout wrong after saveAs html (Java)

Dear Aspose,

When we save the document in the attachment as an html or pdf document the table is shifting in regards to the header off the document. If I use the print feature in Word I get the right output.

The code we are using:

lFileName = "WI - Bundel sortingSaved365.docx";
lSaveName = "WI - Bundel sortingSaved365.html";
Document lDocument = new Document(lFileName);
  lDocument.updateFields();
  lDocument.updatePageLayout();
  // Set an option to export form fields as plain text, not as HTML input elements.
  File lFile = new File(lSaveName);
  File lDirectory = lFile.getParentFile();
  HtmlFixedSaveOptions lOptions = new HtmlFixedSaveOptions();
  lOptions.setResourcesFolder( lDirectory.getCanonicalPath() + "/tmp1234" );
  lOptions.setResourcesFolderAlias( lDirectory.getCanonicalPath() + "/tmp1234" );
  lDocument.updateFields();
  lDocument.save(lSaveName, lOptions);

Regards,
Inception

image.png (5.3 KB)

Summary

AsposeDocument.zip (1.7 MB)

@inceptionEhv,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-16237. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-16237) have been fixed in this Aspose.Words for Java 23.7 update.