Examples of trimEmptyPages()


Examples of org.xhtmlrenderer.layout.Layer.trimEmptyPages()

        XRLog.layout(Level.FINEST, "after layout: " + _rootBox);

        // update scrollbars
        Dimension intrinsic_size = rootLayer.getPaintingDimension(_layout_context);
        if (_layout_context.isPrint()) {
            rootLayer.trimEmptyPages(_layout_context, intrinsic_size.height);
            if (rootLayer.getLastPage() != null) {
                rootLayer.assignPagePaintingPositions(_layout_context, Layer.PAGED_MODE_SCREEN,
                        PAGE_PAINTING_CLEARANCE);
                _drawnSize = new Point(rootLayer.getMaxPageWidth(_layout_context,
                        PAGE_PAINTING_CLEARANCE), rootLayer.getLastPage().getPaintingBottom()
View Full Code Here

Examples of org.xhtmlrenderer.layout.Layer.trimEmptyPages()

                return;
            }

            Layer root = rootBox.getLayer();
            Dimension intrinsic_size = root.getPaintingDimension(layout);
            root.trimEmptyPages(layout, intrinsic_size.height);
            root.assignPagePaintingPositions(layout, Layer.PAGED_MODE_PRINT);

            // RENDER
            c = newRenderingContext(gc);
            List pages = root.getPages();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.