Hi,
As you can see in the attached screenshot, OuterShadow color of the portion “Warehouse (BW)” is white. But when I get the value through the code, it is RGB (128, 128, 128).
Here’s the code I used:
String presentationPath = “PortionFontFormatTest.ppt”;
InputStream stream = new FileInputStream(presentationPath);
Presentation presentation = new Presentation(stream);
stream.close();
ISlide slide = presentation.getSlides().get_Item(0);
IAutoShape shape = (AutoShape) slide.getShapes().get_Item(1);
ITextFrame textFrame = shape.getTextFrame();
IParagraph paragraph = textFrame.getParagraphs().get_Item(0);
IPortion portion = paragraph.getPortions().get_Item(2);
IOuterShadow outerShadow = portion.getPortionFormat().getEffectFormat().getOuterShadowEffect();
System.out.println(outerShadow.getShadowColor().getColor());
Can you check this?
Thanks,
Zeljko
Zeljko