Search Results for

    Show / Hide Table of Contents

    Class VirtualPaperLayoutManager1

    Inheritance
    System.Object
    VirtualPaperLayoutManager1
    Namespace: IronPdf.Engines.Chrome
    Assembly: IronPdf.dll
    Syntax
    public class VirtualPaperLayoutManager1 : Object

    Controlling how Chrome's rendering engine maps HTML content onto a virtual page is the job of VirtualPaperLayoutManager1. Before IronPDF converts a web page or HTML string to PDF, this object lets you pick the exact layout strategy that matches the content type: fixed-width continuous rolls, responsive breakpoints, scaled zoom, or standard Chrome defaults.

    Five mutually exclusive methods define the available strategies. UseChromeDefaultRendering applies Chrome's built-in page layout without modification, a reliable baseline for most print-ready HTML. UseContinuousFeedRendering targets receipt-style or long-form output, accepting a width (default 80) and a margin (default 5) to produce a single unbroken column rather than paginated sheets. UseFitToPageRendering scales content to fill the page width, with a MinimumPixelWidth guard (default 1) that prevents content from collapsing below a usable size. UseResponsiveCssRendering sets a viewport width (default 1280 pixels) so that responsive CSS breakpoints fire correctly before the PDF snapshot is taken, which is particularly useful for dashboards and media-query-heavy layouts. UseScaledRendering applies a percentage zoom (default 100) to the entire page, giving precise control over content density when the source HTML renders too large or too small at its natural size.

    Each call replaces the previous selection, so only the last method called before rendering takes effect. The class lives in IronPdf.Engines.Chrome and is part of the Chrome engine pipeline exposed by IronPDF's rendering configuration surface.

    using IronPdf;
    
    var renderer = new ChromePdfRenderer();
    renderer.RenderingOptions.VirtualPaperLayoutManager
        .UseResponsiveCssRendering(ViewPortWidth: 1440);
    
    renderer.RenderHtmlAsPdf("<h1>Report</h1>").SaveAs("report.pdf");

    For a broader look at rendering options, see the IronPDF HTML to PDF how-to and the custom paper size examples.

    Methods

    UseChromeDefaultRendering()

    Declaration
    public void UseChromeDefaultRendering()

    UseContinuousFeedRendering(Double, Int32)

    Declaration
    public void UseContinuousFeedRendering(double width = 80, int margin = 5)
    Parameters
    Type Name Description
    System.Double width
    System.Int32 margin

    UseFitToPageRendering(Int32)

    Declaration
    public void UseFitToPageRendering(int MinimumPixelWidth = 1)
    Parameters
    Type Name Description
    System.Int32 MinimumPixelWidth

    UseResponsiveCssRendering(Int32)

    Declaration
    public void UseResponsiveCssRendering(int ViewPortWidth = 1280)
    Parameters
    Type Name Description
    System.Int32 ViewPortWidth

    UseScaledRendering(Int32)

    Declaration
    public void UseScaledRendering(int ZoomPercentage = 100)
    Parameters
    Type Name Description
    System.Int32 ZoomPercentage
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget