https://bz.apache.org/bugzilla/show_bug.cgi?id=64815
Bug ID: 64815
Summary: The comment information does not take effect after
modification
Product: POI
Version: 4.1.2-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSLF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
The pptx format file cannot take effect when the comments are modified.
The following is sample code:
public static void main(String[] args) throws Exception {
String filePath = "D:\\test.pptx";
XMLSlideShow slideShow = new XMLSlideShow(new FileInputStream(filePath));
List<XSLFSlide> slides = slideShow.getSlides();
slides.forEach(slide -> {
slide.getComments().forEach(e -> {
System.out.println(e.getText());
e.setText("Test modification");
});
});
FileOutputStream out = new FileOutputStream(filePath);
slideShow.write(out);
slideShow.close();
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]