Page 1 of 1

Reading Content of slides

PostPosted: Wed Mar 19, 2014 10:43 pm
by Nergal
Hi, I'm fairly new to docx4j and maybe it's a stupid question, but for my need I wanted to ask you(someone):

What is the easiest/fastest way to access the slide content from a PPTX?
For example i would simply like to get stuff like text, a table or an image so that i can get the according properties like color, size and position for each.

Do I have to go over the
Code: Select all
slidePart.getJaxbElement()
and then go on with the search?
Or is it better with
Code: Select all
slidePart.getJAXBNodesViaXPath()
?
Maybe something completely different ?

Thanks in advance.

Nergal

Re: Reading Content of slides

PostPosted: Thu Mar 20, 2014 7:14 am
by jason
Yes, that's right.

Or XSLT, as in the pptx2svginhtml.xslt example.

It'd be nice to add an example showing how to get text boxes, pics, other shapes, and ultimately, an higher level API for common needs.