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)
Regards,
Jeroen
Aspose.Words for JAVA
Aspose-RotatedImage.zip (190.8 KB)
We are using the following code:
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);