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

Free Support Forum - aspose.com

HTML class names capitalized on import to Word

We recently upgraded to Aspose.Words 14.1.0 and found that lower-case class names that previously were not modified are now capitalized when creating corresponding Word styles. This causes problems later on when we attempt to map these class names to custom Word styles in another document.





This seems like a bug to me. Why capitalize the class names when creating Word styles? Simple example HTML file and corresponding Word file attached, but it should be easy enough to reproduce without these.




The HTML import process we are using is pretty standard:



ByteArrayInputStream inputStr = new ByteArrayInputStream(html.getBytes());


LoadOptions options = new LoadOptions(LoadFormat.HTML, “”, baseURL);


Document htmlDoc = new Document(inputStr, options);

Hi Jeff,


Thanks for your inquiry. I tested the scenario and have managed to reproduce the same problem on my side. For the sake of correction, I have logged this problem in our issue tracking system as WORDSNET-9825. Our development team will further look into the details of this problem and we will keep you updated on the status of correction. We apologize for your inconvenience.

Best regards,

The issues you have found earlier (filed as WORDSNET-9825) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.