Changing text in a pptx
Posted: Tue Apr 24, 2012 9:25 pm
I need to create a PPTX with a few charts and venndiagrams.
For teh charts , I am plannign to use JFreeChart.
The Venndiagram cannot be drawn the same way. For docx I used a sample template with a Venndiagram drawing and changed the sample values to the actuals during runtime.
I was trying the same approach using pptx but cannot get it working.
For word I was using the method
to ge the text nodes and then was replacing it with actuals.
For PPTX I cannot find a similar method. Can you suggest how it can be done on similar lines?
For teh charts , I am plannign to use JFreeChart.
The Venndiagram cannot be drawn the same way. For docx I used a sample template with a Venndiagram drawing and changed the sample values to the actuals during runtime.
I was trying the same approach using pptx but cannot get it working.
For word I was using the method
- Code: Select all
List texts = template.getMainDocumentPart().get
.getJAXBNodesViaXPath(XPATH_TO_SELECT_TEXT_NODES, true);
to ge the text nodes and then was replacing it with actuals.
For PPTX I cannot find a similar method. Can you suggest how it can be done on similar lines?