Search Results for

    Show / Hide Table of Contents

    Class WebKitPdfRenderer

    IronPdf.WebKitPdfRenderer allows any web page or Html 'snippet' to be turned into a PDF document using an embedded WebKit browser.

    As of 2021 Iron Software reccomend ChromePdfRenderer as our best PDF Renderer and a drop-in replacement for this class.

    Inheritance
    System.Object
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>
    WebKitPdfRenderer
    Implements
    IPdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>
    IRenderer
    Inherited Members
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderHtmlAsPdf(String, Uri, String)
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderHtmlAsPdf(String, String, String)
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderHtmlFileAsPdf(String)
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderHTMLFileAsPdf(String)
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderUrlAsPdf(String)
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderUrlAsPdf(Uri)
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderHtmlAsPdfAsync(String, Uri)
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderHtmlFileAsPdfAsync(String)
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderUrlAsPdfAsync(Uri)
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderUrlAsPdfAsync(String)
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.RenderingOptions
    PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>.LoginCredentials
    Namespace: IronPdf
    Assembly: IronPdf.dll
    Syntax
    public class WebKitPdfRenderer : PdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>, IPdfRenderProxy<WebKitPdfRenderOptions, WebKitHttpLoginCredentials>, IRenderer

    Constructors

    WebKitPdfRenderer()

    Create a new WebKit Html to PDF renderer.

    Declaration
    public WebKitPdfRenderer()

    Methods

    StaticRenderHtmlAsPdf(String, String, WebKitPdfRenderOptions, String)

    Creates a PDF file from an Html string, and returns it as an PdfDocument object which can be edited and saved to disk or served on a website.

    Static version of the RenderHtmlAsPdf method.

    Declaration
    public static PdfDocument StaticRenderHtmlAsPdf(string Html, string BaseUrlOrPath, WebKitPdfRenderOptions Options = null, string Proxy = null)
    Parameters
    Type Name Description
    System.String Html

    The Html to be rendered as a PDF.

    System.String BaseUrlOrPath

    Setting the BaseURL property gives the relative context for hyper-links, images, CSS and JavaScript files. May be a remote URL or local file path.

    WebKitPdfRenderOptions Options

    An instance of WebKitPdfRenderOptions that allows configuration of WebKit "HTML to PDF" rendering parameters.

    System.String Proxy

    Specifies an Http proxy server. Use the pattern: http(s)://user-name:password@host:port

    Returns
    Type Description
    PdfDocument

    A PdfDocument with the Html rendered as its contents.

    StaticRenderHtmlAsPdf(String, Uri, WebKitPdfRenderOptions, String)

    Creates a PDF file from an Html string, and returns it as an PdfDocument object which can be edited and saved to disk or served on a website.

    Static version of the RenderHtmlAsPdf method.

    Declaration
    public static PdfDocument StaticRenderHtmlAsPdf(string Html, Uri BaseUrl = null, WebKitPdfRenderOptions Options = null, string Proxy = null)
    Parameters
    Type Name Description
    System.String Html

    The Html to be rendered as a PDF.

    System.Uri BaseUrl

    Setting the BaseURL property gives the relative context for hyper-links, images, CSS and JavaScript files. May be a remote URL or local file path.

    WebKitPdfRenderOptions Options

    An instance of WebKitPdfRenderOptions that allows configuration of WebKit "HTML to PDF" rendering parameters.

    System.String Proxy

    Specifies an Http proxy server. Use the pattern: http(s)://user-name:password@host:port

    Returns
    Type Description
    PdfDocument

    A PdfDocument with the Html rendered as its contents.

    StaticRenderHtmlAsPdfAsync(String, Uri, WebKitPdfRenderOptions)

    Creates a PDF file from an Html string, and returns it as an PdfDocument object which can be edited and saved to disk or served on a website.

    Static Async version of the RenderHtmlAsPdf method.

    Declaration
    public static Task<PdfDocument> StaticRenderHtmlAsPdfAsync(string Html, Uri BaseUrl = null, WebKitPdfRenderOptions Options = null)
    Parameters
    Type Name Description
    System.String Html

    The Html to be rendered as a PDF.

    System.Uri BaseUrl

    Setting the BaseURL property gives the relative context for hyper-links, images, CSS and JavaScript files. May be a remote URL or local file path.

    WebKitPdfRenderOptions Options

    An instance of WebKitPdfRenderOptions that allows configuration of WebKit "HTML to PDF" rendering parameters.

    Returns
    Type Description
    System.Threading.Tasks.Task<PdfDocument>

    A PdfDocument with the Html rendered as its contents.

    StaticRenderHTMLFileAsPdf(String, WebKitPdfRenderOptions)

    Renders an HTML file as a PDF file. Returns a PdfDocument object which may be edited and saved to disk or served on a website.

    Static version of the RenderHTMLFileAsPdf method.

    Declaration
    public static PdfDocument StaticRenderHTMLFileAsPdf(string FilePath, WebKitPdfRenderOptions Options = null)
    Parameters
    Type Name Description
    System.String FilePath

    Path to an Html file.

    WebKitPdfRenderOptions Options

    Optional print options and settings as an instance of WebKitPdfRenderOptions.

    Returns
    Type Description
    PdfDocument

    A PdfDocument with the Html file rendered as its contents..

    StaticRenderHTMLFileAsPdfAsync(String, WebKitPdfRenderOptions)

    Renders an HTML file as a PDF file. Returns a PdfDocument object which may be edited and saved to disk or served on a website.

    Static Async version of the RenderHTMLFileAsPdf method.

    Declaration
    public static Task<PdfDocument> StaticRenderHTMLFileAsPdfAsync(string FilePath, WebKitPdfRenderOptions Options = null)
    Parameters
    Type Name Description
    System.String FilePath

    Path to an Html file.

    WebKitPdfRenderOptions Options

    Optional print options and settings as an instance of WebKitPdfRenderOptions.

    Returns
    Type Description
    System.Threading.Tasks.Task<PdfDocument>

    A PdfDocument with the Html file rendered as its contents.

    StaticRenderUrlAsPdf(String, WebKitPdfRenderOptions)

    Renders all Html and assets at a given Url into a PDF file using IronPdf's embedded WebKit browser as the rendering engine.

    Static version of the RenderUrlAsPdf method.

    Declaration
    public static PdfDocument StaticRenderUrlAsPdf(string UrlOrPath, WebKitPdfRenderOptions Options = null)
    Parameters
    Type Name Description
    System.String UrlOrPath

    An absolute Url. Points to the Html document to be rendered as a PDF.

    WebKitPdfRenderOptions Options

    Optional print options and settings as an instance of WebKitPdfRenderOptions.

    Returns
    Type Description
    PdfDocument

    A PdfDocument with the Url rendered as its contents.

    StaticRenderUrlAsPdf(Uri, WebKitPdfRenderOptions)

    Renders all Html and assets at a given Url into a PDF file using IronPdf's embedded WebKit browser as the rendering engine.

    Static version of the RenderUrlAsPdf method.

    Declaration
    public static PdfDocument StaticRenderUrlAsPdf(Uri Url, WebKitPdfRenderOptions Options = null)
    Parameters
    Type Name Description
    System.Uri Url

    An absolute Uri. Points to the Html document or local file file to be rendered as a PDF.

    WebKitPdfRenderOptions Options

    Optional print options and settings as an instance of WebKitPdfRenderOptions.

    Returns
    Type Description
    PdfDocument

    A PdfDocument with the Url rendered as its contents.

    StaticRenderUrlAsPdfAsync(String, WebKitPdfRenderOptions)

    Renders all Html and assets at a given Url into a PDF file using IronPdf's embedded WebKit browser as the rendering engine.

    Static Async version of the RenderUrlAsPdf method.

    Declaration
    public static Task<PdfDocument> StaticRenderUrlAsPdfAsync(string UrlOrPath, WebKitPdfRenderOptions Options = null)
    Parameters
    Type Name Description
    System.String UrlOrPath

    An absolute Url. Points to the Html document or local file to be rendered as a PDF.

    WebKitPdfRenderOptions Options

    Optional print options and settings as an instance of WebKitPdfRenderOptions.

    Returns
    Type Description
    System.Threading.Tasks.Task<PdfDocument>

    A PdfDocument with the Url rendered as its contents.

    StaticRenderUrlAsPdfAsync(Uri, WebKitPdfRenderOptions)

    Renders all Html and assets at a given Url into a PDF file using IronPdf's embedded WebKit browser as the rendering engine.

    Static Async version of the RenderUrlAsPdf method.

    Declaration
    public static Task<PdfDocument> StaticRenderUrlAsPdfAsync(Uri Url, WebKitPdfRenderOptions Options = null)
    Parameters
    Type Name Description
    System.Uri Url

    An absolute Uri. Points to the Html document or local file file to be rendered as a PDF.

    WebKitPdfRenderOptions Options

    Optional print options and settings as an instance of WebKitPdfRenderOptions.

    Returns
    Type Description
    System.Threading.Tasks.Task<PdfDocument>

    A PdfDocument with the Url rendered as its contents.

    Implements

    IPdfRenderProxy<T, U>
    IRenderer

    Inherited members

    RenderHtmlAsPdf(String, Uri, String)
    RenderHtmlAsPdf(String, String, String)
    RenderHtmlFileAsPdf(String)
    RenderHTMLFileAsPdf(String)
    RenderUrlAsPdf(String)
    RenderUrlAsPdf(Uri)
    RenderHtmlAsPdfAsync(String, Uri)
    RenderHtmlFileAsPdfAsync(String)
    RenderUrlAsPdfAsync(Uri)
    RenderUrlAsPdfAsync(String)
    RenderingOptions
    LoginCredentials

    See Also

    ChromePdfRenderer
    IronPdf.HtmlToPdf
    ☀
    ☾
    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.