I’m seeing an issue where the content in a table cell is changing format after I change the text. The text in the cell is original black and after I set the text it turns red. It is only happening for that one cell. I included a test PPT file and some code that replicates the issue.
public static void main(String[] args){
Presentation ppt = new Presentation("test_delete_before.pptx");
try {
for (ISlide slide : ppt.getSlides()) {
for (IShape shape : slide.getShapes()) {
if (shape instanceof ITable) {
ITable table = (ITable) shape;
for (IRow row : table.getRows()) {
for (int i = 0; i < table.getColumns().size(); i++) {
row.get_Item(i).getTextFrame().setText("$0");
}
}
}
}
}
ppt.save("test_delete_after.pptx", com.aspose.slides.SaveFormat.Pptx);
} finally {
ppt.dispose();
}
}
test_delete_before.zip (44.4 KB)