Hi, I have a question about automatic font color handling. When reading font color from run, and that font color has automatic color aspose returns to me black color. And if I write that text with black highlight it can not be seen. Take a look at my code snippet:
Document document = new Document(inputStream);
List runs = getRuns(document);
Run run = runs.get(0);
Font font = run.getFont();
Color color = font.getColor(); // returns white
run = runs.get(1);
font = run.getFont();
color = font.getColor(); // returns white
DocumentBuilder builder = new DocumentBuilder(document);
builder.moveToDocumentEnd();
builder.getFont().setHighlightColor(Color.BLACK);
builder.getFont().setColor(color);
builder.write("new text");
document.save(outputFile); // new text cannot be seen
Can you please tell me how can I handle automatic color?
I am using aspose for java. There is simple file in attachment.
Thanks, Ivica.