page.setPaintingBottom( paintingTop + page.getHeight(cssCtx) + additionalClearance*2); paintingTop = page.getPaintingBottom();
page.setPaintingBottom(paintingTop + page.getHeight(cssCtx)); paintingTop = page.getPaintingBottom() + additionalClearance;
    public void assignPagePaintingPositions(CssContext cssCtx, int additionalClearance) {        List pages = getPages();        int paintingTop = 0;        for (Iterator i = pages.iterator(); i.hasNext(); ) {            PageBox page = (PageBox)i.next();            page.setPaintingTop(paintingTop);            page.setPaintingBottom(                    paintingTop + page.getHeight(cssCtx) + additionalClearance*2);            paintingTop = page.getPaintingBottom();        }    }