On Thu, 27 Jun 2013, honyk wrote:
Thanks for your effort.
There is a model for slide notes available:
http://poi.apache.org/apidocs/org/apache/poi/xslf/usermodel/XSLFNotes.html
It'll almost certainly need some extending
I can read slide notes from the existing presentation, so I know how the
final XML fragment should look like:
XMLSlideShow pptx = new XMLSlideShow(new FileInputStream("D:/test.pptx"));
for (XSLFSlide slide : pptx.getSlides()) {
System.out.println(slide.getNotes().getXmlObject().xmlText());
}
How can inject this or slightly modified XML data back to the presentation?
You'll need to work with the opcpackage and packagepart objects to add the
additional part, set up the relationships etc, then add suitable links /
new xml to the parent slide to point to it
Unfortunately XSLFNotes class has no constructor that would accept
CTNotesSlide as a parameter. And it is final and cannot be extended.
Patch it then, and send us the patch :)
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]