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

Free Support Forum - aspose.com

Background color should like color name

Hi Team,
We are using Aspose.Word.dll 10.5.0.0 license for getting HTML for input word document.
Our concern is regarding the Highlighting.
The Aspose HTML for the highlighted part is (Please refer the attached document):
Now as per our application requirement we need to get the color name instead of color code i.e. will work for us.
So please let us know if there is any way we can get the color name instead of color code in the input HTML
Thanks,
Samanvay

Hi
Thanks for your request. There is no way to output color names instead of color codes upon converting documents to HTML using Aspose.Words.
However, there is a very simple workaround, you can post-process your output HTML. You can use regular expression to find all color codes in your HTML and then use own logic to replace color codes with color names.
Best regards,