Thanks for your valuable reply Yegor I am using XSLFSlide and XSLFShape only. But If you don't change the shape (Text Box) size or the position in PPTX, the shape properties are not present in the slide.xml file.
So my doubt is from where i can take the default shape properties for the default shapes. I have masterSlide.xml and the slidelayout.xml. Which one need to be consider for the default shapes properties.? Jebarlin.R On Fri, Nov 11, 2011 at 7:28 PM, Yegor Kozlov <[email protected]> wrote: > The simplest solution is to use the XSLF usermodel API: > > XMLSlideShow ppt = new XMLSlideShow(new > FileInputStream("presentation.pptx")); for(XSLFSlide slide : > ppt.getSlides()) { for(XSLFShape sh : slide){ > Rectangle2D anchor = sh.getAnchor(); String name = > sh.getShapeName(); > ..... } } > If you want to poke in the slide XML yourself, look at the xfrm bean > that holds 2D transform for shapes: > > <a:xfrm> > <a:off x="901700" y="1949450"/> > <a:ext cx="8285163" cy="2235200"/> > <a:chOff x="901700" y="2946400"/> > <a:chExt cx="8285163" cy="2235200"/> > </a:xfrm> > > All values are in EMUs (1pt = 12700 EMUs) > > Yegor > > On Fri, Nov 11, 2011 at 3:50 PM, Jebarlin Robertson > <[email protected]> wrote: > > Hi, > > > > Can anyone give me some sample code to get the shape and its property > from > > PPT (2007 format) document? > > > > > > I just want to know how to get the shape properties such as width, hight, > > X, Y axis, from the XML, If these properties are not in the slide.xml > then > > how to get it from masterslide.xml? > > > > Thanks in Advance. > > > > > > Thanks and Regards, > > Jebarlin Robertson.R > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
