I have a partial answer here:
http://www.nabble.com/Re-2-%3A-org.apache.poi.hslf.model.TextRun-p4767544.html
TextBox is a subclass of TextShape which is a base class of all shapes that can
hold text.
The correct code should test for TextShape, not for TextBox:
if (sh[i] instanceof TextShape){
TextShape box = (TextShape)
String text = box.getText();
...
}
Yegor
I'm running into problems with that, however. Not all the Shapes that
contain text are TextBoxes; in the presentations I've looked at, some are
Pictures, some are AutoShapes. I need to get the location for every
TextRun. If I could access the getShapeId() method in TextRun, it would let
me find the shape corresponding to each, but that method is protected. Any
tips on how to proceed?
Thanks much,
Larry
LarryB wrote:
I'm trying to determine the (x,y) coordinates for TextRuns within a slide
(so I can figure out which one is *really* the title!). Can someone point
me to some sample code?
Thanks very much,
Larry
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]