Class HtmlRenderingEngine
Specifies the Rendering Engine.
Inheritance
Namespace: Syncfusion.HtmlConverter
Assembly: Syncfusion.HtmlConverter.Base.dll
Syntax
public sealed class HtmlRenderingEngine : Enum
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 the PDF document MemoryStream stream = new MemoryStream(); document.Save(stream);
//Initialize the HTML to PDF converter HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.Blink); //Initialize the WebKit converter settings BlinkConverterSettings settings = new BlinkConverterSettings(); //Set Blink path settings.BlinkPath = @"/BlinkBinaries/"; //Assign Blink settings to the HTML converter htmlConverter.ConverterSettings = settings; //Convert URL to PDF PdfDocument document = htmlConverter.Convert("https://www.google.com"); //Save the PDF document MemoryStream stream = new MemoryStream(); document.Save(stream);
Fields
Blink
Blink rendering engine.
Declaration
public const HtmlRenderingEngine Blink
Field Value
Type |
---|
HtmlRenderingEngine |
WebKit
WebKit rendering engine.
Declaration
public const HtmlRenderingEngine WebKit
Field Value
Type |
---|
HtmlRenderingEngine |