I have a MS word document with some parts highlighted. I want to remove all highlighting and generate an HTML page from the document.
To do this I created a Visitor with the following overide:
public override VisitorAction VisitRun(Run run)
{
run.Font.HighlightColor = Color.Empty;
return base.VisitRun(run);
}
When generating a .Doc file this seems to work, but when I generate an HTML file I get a black background because the following style is generated:
background-color: #000000;
The alpha channel seems to be missing and I would have expected no background style to have been included.
Is there some other way to disable the highlight color?