page.paintBorder(c, 0);
page.paintBorder(c, 0, Layer.PAGED_MODE_PRINT);
    private void paintPage(RenderingContext c, PageBox page) {        Shape working = _outputDevice.getClip();                Rectangle content = page.getPrintingClippingBounds(c);        _outputDevice.clip(content);                        int top = -page.getPaintingTop() +             page.getStyle().getMarginBorderPadding(c, CalculatedStyle.TOP);                int left = page.getStyle().getMarginBorderPadding(c, CalculatedStyle.LEFT);                _outputDevice.translate(left, top);        _root.getLayer().paint(c, 0, 0);        _outputDevice.translate(-left, -top);                _outputDevice.setClip(working);        page.paintAlternateFlows(c, _root.getLayer(), Layer.PAGED_MODE_PRINT, 0);                page.paintBorder(c, 0);        _outputDevice.setClip(working);    }    