SlideNumber is a placeholder shape.

You can iterate over slide placeholders and check their type:

        for(XSLFTextShape sh : slide.getPlaceholders()){
            Placeholder ph = sh.getTextType();
            switch(ph){
                case SLIDE_NUMBER:
                    // this shape represents slide number
                    String text = sh.getText(); // should be slide number
                    break;
                case DATETIME:
                    // this shape represents date / time placeholder
                    break;
            }
        }

Which version of POI are you using? Please try the latest build from
trunk, there have been recent updates in XSLF.

Yegor

On Thu, Feb 16, 2012 at 2:10 PM, mdbhaskar <[email protected]> wrote:
> How to identify the slide numbers using xslf framework and when I use
> PPTX2PNG utility the slide numbers are not rendering.
> Could you please provide me the solution?
>
> --
> View this message in context: 
> http://apache-poi.1045710.n5.nabble.com/Slide-numbers-problems-for-PPTX-slides-tp5489060p5489060.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]
>

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

Reply via email to