Bug confirmed. I will commit the fix in a little while.

Yegor

Hello

    I want to get data on TextBoxes with a template but I have got problems
with margin on SimpleShape. Only margin right and top run normally but
margin left and bottom have incorrect values.

Sample code :

        SlideShow ppt = new SlideShow(new HSLFSlideShow("test2.ppt"));
                                
        Slide slide = ppt.getSlides()[0];
                                
        Shape sh[] = slide.getShapes();
                                
        for( int i = 0 ; i < sh.length ; i++ )
        {
                TextBox curSh = (TextBox)sh[i];
                System.out.println(curSh.getText());
                System.out.println("Margin top : "+curSh.getMarginTop());
                System.out.println("Margin bottom : "+curSh.getMarginBottom());
                System.out.println("Margin left : "+curSh.getMarginLeft());
                System.out.println("Margin right : "+curSh.getMarginRight());
                System.out.println();
        }

http://www.nabble.com/file/p17824872/test2.ppt test2.ppt
Regards

MG



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to