Hi Andi

Thanks for your email.

I enclose an example PPT file
6_contingency_tables.ppt
<http://apache-poi.1045710.n5.nabble.com/file/n5719837/6_contingency_tables.ppt>
  

What I like to do is to extract texts from a textshape and if a text is
bullet style, I'd like to add a bullet with a proper nested indentation. For
example, on slide 2 in the enclosed ppt file,

I'd like to output two paragraphs as below: 

contingency tables show frequencies produced by cross-classifying
observations 
e.g., pottery described simultaneously according to vessel form & surface
decoration

However, using the following codes, I don't know how to get these two
paragraphs.

TextShape sh = slide.getShapes();
TextRun textrun = sh.getTextRun();      
RichTextRun[] rt = textrun.getRichTextRuns(); 

for(int m = 0; m < rt.length; m++) {
   System.out.println("m:" + m +"," + rt[m].isBullet() + "," +
rt[m].getText() + "," + rt[m].getIndentLevel() + "," +
rt[m].getBulletChar());
}


Output is           
m:0,true,contingency tables show frequencies produced by cross-classifying
observations,0,•
m:1,true, 
,0,•
m:2,true,e.g., pottery described ,0,•
m:3,true,simultaneously,0,•
m:4,true, according to vessel form & surface decoration,0,•

Could you advise me how to get bullet styles and paragraphs?

Thanks
T.



--
View this message in context: 
http://apache-poi.1045710.n5.nabble.com/ANNOUNCE-Apache-POI-3-13-beta1-released-tp5719469p5719837.html
Sent from the POI - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to