Hi,
In the attached presentation, I have a table with some text in first two cells of the first column. I’m trying to get the color of “Text2” in the second cell of the first column. When I get the color via code, value is [r=0,g=204,b=153] which is not black as it is shown in PowerPoint.
Here’s the code I used:
String presentationPath = “Fruehe_Arzneimittelentwicklung_KAE_31Mai2013_website.pptx”;
InputStream stream = new FileInputStream(presentationPath);
Presentation presentation = new Presentation(stream);
stream.close();
ISlide slide = presentation.getSlides().get_Item(0);
ITable table = (ITable) slide.getShapes().get_Item(0);
ICell cell = table.get_Item(0, 1);
IParagraph paragraph = cell.getTextFrame().getParagraphs().get_Item(0);
IPortion portion = paragraph.getPortions().get_Item(0);
System.out.println(portion.getText());
IPortionFormatEffectiveData effectiveData = portion.createPortionFormatEffective();
System.out.println(effectiveData.getFillFormat().getSolidFillColor());
Can you check this?
Thanks,
Zeljko
Zeljko