Hi!
Hi Marc,
Hi Marc,
Thanks for being patient. Java has not straight equivalent of Color.Empty. But, you can emulate it (inside Aspose.Words for Java) using java.awt.Color with all zeroes. For example, please see following code:
Document doc = new Document(getMyDir() + “in.docx”);
for (Run run : (Iterable<Run>) doc.getChildNodes(NodeType.RUN, true))
{
run.getFont().setHighlightColor(new java.awt.Color(0, true));
//run.getFont().setHighlightColor(new java.awt.Color(0, 0, 0, 0));
}
doc.save(getMyDir() + “15.5.0-awjava.docx”);
I hope, this helps.