I am on a project and I need to get all the text from a PowerPoint presentation.
I have read the documentation about it and I would get back txBody or paragraph.
I tried to use a home made traversal (that uses TraversalUtil.getChildrenImpl()) but it does not find any CTTextParagraph.
Thus I tried to use it with Shape and that's working. But not all CTTextParagraph are in such Shape...
Finaly I tried to do it with getJAXBNodesViaXPath. It's easy with docx, but with pptx I am a little lost.
Which binder must I use ?
- Code: Select all
pres.getMainPresentationPart().getJAXBContext().createBinder()
And which xPath ?
- Code: Select all
"//a:p"
- Code: Select all
"//p:txBody"
And on which objects ?
- Code: Select all
((SlidePart) part).getJaxbElement().getCSld().getSpTree().getSpOrGrpSpOrGraphicFrame()
If you have any idea how I could resolve these issues...
thx