Search Results for

    Show / Hide Table of Contents

    Class PdfRenderingEngine

    Specifies which HTML to PDF rendering engine to use for document generation. Chrome engine recommended for best compatibility and features.

    // Use Chrome engine explicitly:
    var renderer = new ChromePdfRenderer {
        RenderingOptions = new ChromePdfRenderOptions {
            RenderingEngine = PdfRenderingEngine.Chrome
        }
    };
    
    // Let IronPDF choose (defaults to Chrome):
    Installation.RenderingEngine = PdfRenderingEngine.Default;
    
    // Check current engine:
    if (Installation.RenderingEngine == PdfRenderingEngine.Chrome) {
        // Using Chrome's advanced features
    }

    Chrome engine supports latest HTML5/CSS3/JavaScript

    Chrome requires more memory but provides better results

    See: https://ironpdf.com/how-to/html-to-pdf/

    Inheritance
    System.Object
    PdfRenderingEngine
    Namespace: IronPdf.Rendering
    Assembly: IronPdf.dll
    Syntax
    public sealed class PdfRenderingEngine : Enum

    Fields

    Chrome

    Chrome browser engine - full HTML5/CSS3/JavaScript support. RECOMMENDED: Most capable, multithreaded, standards compliant.

    // Best quality rendering:
    Installation.RenderingEngine = PdfRenderingEngine.Chrome;
    var pdf = renderer.RenderHtmlAsPdf(modernHtml);

    Supports flexbox, grid, modern JavaScript

    Handles complex layouts and web fonts perfectly

    Declaration
    public const PdfRenderingEngine Chrome
    Field Value
    Type Description
    PdfRenderingEngine

    Default

    Automatic selection - chooses best available engine at runtime. Falls back to Chrome if available. Safe default choice.

    Installation.RenderingEngine = PdfRenderingEngine.Default;
    Declaration
    public const PdfRenderingEngine Default
    Field Value
    Type Description
    PdfRenderingEngine

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.