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

Free Support Forum - aspose.com

Image is rotated after conversion from DOCX to HtmlFixed using Java

Hello Aspose,

When we save a document which has an image that is rotated, as an html page, the image isn’t rotated anymore in the html page. This only happens when we use a resourcefolder.
(We are using a resourcefolder to minimise memory problems)


Aspose.Words for JAVA

Aspose-RotatedImage.zip (190.8 KB)

We are using the following code:

  Document lDocument = new Document(lFileName);

  // 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.save(lSaveName, lOptions);


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