Missing Color Value

Hi,


If you run the code below you will notice that for some Chars, from each Shape, Color Value is missing (is an empty String). Is this a possibility or I should be able to get Color Value for each Char like I get other values (ColorTrans and FontScale) in the code example? Can you please check this out?

Thanks,
Zeljko

Code:
public void colorTest() throws Exception {
Diagram diagram = new Diagram(“Test.vsdx”);
ShapeCollection shapes = diagram.getPages().get(0).getShapes();
for (int i = 0; i < shapes.getCount(); i++) {
Shape shape = shapes.get(i);
CharCollection chars = shape.getChars();
for (int j = 0; j < chars.getCount(); j++) {
Char ch = chars.get(j);
System.out.println(“COLOR VALUE: " + ch.getColor().getValue());
System.out.println(“COLOR TRANS: " + ch.getColorTrans().getValue());
System.out.println(“FONT SCALE” + ch.getFontScale().getValue());
System.out.println(””);
}
}
}

Hi Zeljko,


Thank you for contacting support. Aspose.Diagram API is returning an empty String when the Character color value is set to THEMEVAL function without any argument. I thought, it should return a color value instead of an empty String. I have logged an investigation under ticket id DIAGRAMJAVA-50319 in our bug tracking system. Your post has also been linked to this ticket. We’ll let you know once a significant progress has been made in this regard. We’re sorry for the inconvenience caused.

The issues you have found earlier (filed as DIAGRAMJAVA-50319) have been fixed in Aspose.Diagram for Java 19.4.