Hi,
When we try to convert the enclosed document to HTML, it moves all the images in the document.
This seems like a different cause than WORDSNET-20153
I’ve tested this and it seems to have something to do with the images being ‘in line’. When I move the images to ‘in front of text’ it does work.
aspose.zip (8.5 MB)
This has been tested on version 20.3 (currently the latest version) and can be reproduced using the following code:
String lFileName = “D:\aspose\image inline.docx”;
String lSaveName = “D:\aspose\test.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