Hi,
sorry ... I've just realized that in my original posting, with the help of
the nabble archive,
the preformated source code was stripped away when the response was
forwarded to the poi mailing list ... here it is again:
import java.awt.Rectangle;
import java.io.FileOutputStream;
import org.apache.poi.xslf.usermodel.XMLSlideShow;
import org.apache.poi.xslf.usermodel.XSLFSlide;
import org.apache.poi.xslf.usermodel.XSLFTextBox;
import org.apache.poi.xslf.usermodel.XSLFTextParagraph;
import org.apache.poi.xslf.usermodel.XSLFTextRun;
public class XSLFTest {
public static void main (String args[]) throws Exception {
XMLSlideShow ppt = new XMLSlideShow();
XSLFSlide s = ppt.createSlide();
XSLFTextBox tb = s.createTextBox();
tb.setAnchor(new Rectangle(100,100,100,100));
XSLFTextParagraph p = tb.addNewTextParagraph();
XSLFTextRun r = p.addNewTextRun();
r.setText("foo");
p.addLineBreak();
r = p.addNewTextRun();
r.setText("baa");
p.setBullet(true);
p.setIndent(-10);
p.setLeftMargin(10);
p.setLevel(0);
FileOutputStream fos = new FileOutputStream("bla.pptx");
ppt.write(fos);
fos.close();
}
}
Andi.
--
View this message in context:
http://apache-poi.1045710.n5.nabble.com/XSLFTextParagraph-Hanging-Indent-tp5719072p5719075.html
Sent from the POI - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]