File Formats

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Enum HtmlRenderingEngine

    Show / Hide Table of Contents

    Enum HtmlRenderingEngine

    Specifies the Render Engine.

    Namespace: Syncfusion.HtmlConverter
    Assembly: Syncfusion.HtmlConverter.Base.dll
    Syntax
    public enum HtmlRenderingEngine
    Remarks

    To know more details about rendering engines, refer this link.

    Examples
    //Initialize the HTML to PDF converter 
    HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit);
    //Initialize the WebKit converter settings
    WebKitConverterSettings settings = new WebKitConverterSettings();
    //Set WebKit path
    settings.WebKitPath = @"/QtBinaries/";
    //Assign WebKit settings to the HTML converter
    htmlConverter.ConverterSettings = settings;
    //Convert URL to PDF
    PdfDocument document = htmlConverter.Convert("https://www.google.com");
    //Save and close the PDF document 
    document.Save("Output.pdf");
    document.Close(true);
    'Initialize the HTML to PDF converter 
    Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit)
    'Initialize the WebKit converter settings
    Dim settings As New WebKitConverterSettings()
    'Set WebKit path
    settings.WebKitPath = "/QtBinaries/"
    'Assign WebKit settings to the HTML converter
    htmlConverter.ConverterSettings = settings
    'Convert URL to PDF
    Dim document As PdfDocument = htmlConverter.Convert("https://www.google.com")
    'Save and close the PDF document 
    document.Save("Output.pdf")
    document.Close(True)

    Fields

    Name Description
    Blink

    Blink engine convert the HTML

    IE

    IE engine convert the HTML

    WebKit

    WebKit engine convert the HTML

    See Also
    HtmlToPdfConverter
    WebKitConverterSettings
    PdfDocument
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved