Hello,
java.awt.Color[r=0,g=0,b=0] ,but it is java.awt.Color[r=79,g=129,b=189].
String dataDir = "Z:\\Downloads\\aa_pptxtestfiles\\dingtestdata\\";
Presentation pres = new Presentation(dataDir+ "\\testSample_table.pptx");
ISlide sld = pres.getSlides().get_Item(0);
//Initialize null TableEx
ITable tbl = null;
//Iterate through the shapes and set a reference to the table found
for (IShape shp : sld.getShapes())
if (shp instanceof ITable)
tbl = (ITable)shp;
ITextFrame textFrame = tbl.getRows().get_Item(1).get_Item(0).getTextFrame();
System.out.println("text is:" + textFrame.getText() );
IPortion portion = textFrame.getParagraphs().get_Item(0).getPortions().get_Item(0);
Color color = portion.createPortionFormatEffective().getFillFormat().getSolidFillColor();
System.out.println("The color is:" + color.toString() );
ITextFrame textFrame2 = tbl.getRows().get_Item(1).get_Item(1).getTextFrame();
System.out.println("text is:" + textFrame2.getText() );
IPortion portion2 = textFrame2.getParagraphs().get_Item(0).getPortions().get_Item(0);
Color color2 = portion2.createPortionFormatEffective().getFillFormat().getSolidFillColor();
System.out.println("The color is:" + color2.toString() );
Best Regards,
Yuebin Ding