s = Integer.toString(c.getCurrentPage() + 1);
s = Integer.toString(c.getPageNo() + 1);
    public void setPageCounterValue(RenderingContext c) {        String s = null;        switch (this.pageCounterType) {            case PAGE_COUNTER_PAGE:                s = Integer.toString(c.getCurrentPage() + 1);                break;            case PAGE_COUNTER_PAGES:                s = Integer.toString(c.getPageCount());                break;        }        if (s != null) {            masterText = s;            start = 0;            end = masterText.length();            setWidth(c.getTextRenderer().getWidth(c.getFontContext(),                     parent.getStyle().getCalculatedStyle().getFSFont(c), masterText));        }    }