DOCX to HTML conversion issue with image position using Java

Hi,

When we try to convert the enclosed document to HTML, it moves all the images in the document.
The arrows that are drawn in the document keep their position.
This results in a mismatch to where these arrows should be pointing.
customer.zip (193.1 KB)

This has been tested on version 20.3 (currently the latest version) and can be reproduced using the following code:

String lFileName = “D:\aspose\customer.docx”;
String lSaveName = “D:\aspose\customer.html”;

Document lDocument = new Document(lFileName);
lDocument.updateFields();
lDocument.updatePageLayout();

File lFile = new File(lSaveName);
File lDirectory = lFile.getParentFile();
HtmlFixedSaveOptions lOptions = new HtmlFixedSaveOptions();
lOptions.setResourcesFolder( lDirectory.getCanonicalPath() + “/rsc” );
lOptions.setResourcesFolderAlias( lDirectory.getCanonicalPath() + “/rsc” );
lDocument.updateFields();
lDocument.save(lSaveName, lOptions);

Best Regards

@inceptionEhv

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-20153. 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-20153) have been fixed in this Aspose.Words for .NET 20.5 update and this Aspose.Words for Java 20.5 update.

Hi,

This issue seems resolved, thank you