Hi, I have a docx document with some highlighted style added.
I wanted to remove those highlighted color from docx files while converting to html.
The resultant html should not need the highlighted styles from docx.
Anime (1).docx (15.5 KB)
im using these two methods to highlight the text in aspose
foreach (var item in paragraphWithMostHits)
{
//Remove smart tags
item.RemoveSmartTags();
var runsList = item.Where(x => x.NodeType == 1.Aspose.Words.NodeType.Run).ToList();
item.ParagraphBreakFont.HighlightColor = System.Drawing.Color.Yellow;
foreach (Aspose.Words.Run run in runsList)
run.Font.HighlightColor = System.Drawing.Color.Yellow;
}
options.ApplyFont.HighlightColor = System.Drawing.Color.Yellow;