Search Results for

    Show / Hide Table of Contents

    Class PersistentThreadLocalChromeClient

    This is A wrapper of LocalChromeClient That force to invoke any chrome interop as a single persistent thread Useful for macOS, because CEF initialize and CEF function (render) in macOS required the same thread.

    Inheritance
    System.Object
    PersistentThreadLocalChromeClient
    Implements
    System.IDisposable
    Namespace: IronPdf.Engines.Chrome
    Assembly: IronPdf.dll
    Syntax
    public class PersistentThreadLocalChromeClient : Object

    Constructors

    PersistentThreadLocalChromeClient()

    internal ctor

    Declaration
    public PersistentThreadLocalChromeClient()

    Methods

    AddHtmlHeadersAndFooters(IPdfDocumentId, String, String, ChromePdfRenderOptions, List<Int32>, String, String, String)

    Declaration
    public void AddHtmlHeadersAndFooters(IPdfDocumentId id, string owner_password, string user_password, ChromePdfRenderOptions Options, List<int> pages, string url, string htmlTitle, string pdfTitle)
    Parameters
    Type Name Description
    IronSoftware.IPdfDocumentId id
    System.String owner_password
    System.String user_password
    ChromePdfRenderOptions Options
    System.Collections.Generic.List<System.Int32> pages
    System.String url
    System.String htmlTitle
    System.String pdfTitle

    AddStamp(IPdfDocumentId, String, String, Stamper, IEnumerable<IPdfPage>)

    Declaration
    public void AddStamp(IPdfDocumentId id, string owner_password, string user_password, Stamper Stamper, IEnumerable<IPdfPage> pages)
    Parameters
    Type Name Description
    IronSoftware.IPdfDocumentId id
    System.String owner_password
    System.String user_password
    Stamper Stamper
    System.Collections.Generic.IEnumerable<IPdfPage> pages

    ApplyCookies(String, Dictionary<String, String>)

    Declaration
    public void ApplyCookies(string url, Dictionary<string, string> cookies)
    Parameters
    Type Name Description
    System.String url
    System.Collections.Generic.Dictionary<System.String, System.String> cookies

    ClearCookies()

    Declaration
    public void ClearCookies()

    Dispose()

    stop the persistent thread

    Declaration
    public void Dispose()

    MeasureHTML(String, Uri, String, ChromePdfRenderOptions)

    Declaration
    public Size MeasureHTML(string html, Uri BaseUrl, string Proxy, ChromePdfRenderOptions RenderingOptions)
    Parameters
    Type Name Description
    System.String html
    System.Uri BaseUrl
    System.String Proxy
    ChromePdfRenderOptions RenderingOptions
    Returns
    Type Description
    SixLabors.ImageSharp.Size

    RenderPDFFromFile(ChromePdfRenderOptions, ChromeHttpLoginCredentials, String)

    Declaration
    public IPdfDocumentId RenderPDFFromFile(ChromePdfRenderOptions RenderingOptions, ChromeHttpLoginCredentials LoginCredentials, string filePath)
    Parameters
    Type Name Description
    ChromePdfRenderOptions RenderingOptions
    ChromeHttpLoginCredentials LoginCredentials
    System.String filePath
    Returns
    Type Description
    IronSoftware.IPdfDocumentId

    RenderPDFFromHTML(String, Uri, String, ChromePdfRenderOptions, ChromeHttpLoginCredentials)

    Declaration
    public IPdfDocumentId RenderPDFFromHTML(string html, Uri BaseUrl, string Proxy, ChromePdfRenderOptions RenderingOptions, ChromeHttpLoginCredentials LoginCredentials)
    Parameters
    Type Name Description
    System.String html
    System.Uri BaseUrl
    System.String Proxy
    ChromePdfRenderOptions RenderingOptions
    ChromeHttpLoginCredentials LoginCredentials
    Returns
    Type Description
    IronSoftware.IPdfDocumentId

    RenderPDFFromImages(List<String>, IEnumerable<(Byte[], String)>, ImageBehavior, ChromePdfRenderOptions)

    Declaration
    public IPdfDocumentId RenderPDFFromImages(List<string> image_paths, IEnumerable<(byte[], string)> images, ImageBehavior behavior, ChromePdfRenderOptions RenderingOptions)
    Parameters
    Type Name Description
    System.Collections.Generic.List<System.String> image_paths
    System.Collections.Generic.IEnumerable<System.ValueTuple<System.Byte[], System.String>> images
    ImageBehavior behavior
    ChromePdfRenderOptions RenderingOptions
    Returns
    Type Description
    IronSoftware.IPdfDocumentId

    RenderPDFFromURI(Uri, ChromePdfRenderOptions, ChromeHttpLoginCredentials)

    Declaration
    public IPdfDocumentId RenderPDFFromURI(Uri uri, ChromePdfRenderOptions RenderingOptions, ChromeHttpLoginCredentials LoginCredentials)
    Parameters
    Type Name Description
    System.Uri uri
    ChromePdfRenderOptions RenderingOptions
    ChromeHttpLoginCredentials LoginCredentials
    Returns
    Type Description
    IronSoftware.IPdfDocumentId

    RenderPDFFromZIP(Byte[], String, ChromePdfRenderOptions, ChromeHttpLoginCredentials)

    Declaration
    public IPdfDocumentId RenderPDFFromZIP(byte[] bytes, string mainFile, ChromePdfRenderOptions RenderingOptions, ChromeHttpLoginCredentials LoginCredentials)
    Parameters
    Type Name Description
    System.Byte[] bytes
    System.String mainFile
    ChromePdfRenderOptions RenderingOptions
    ChromeHttpLoginCredentials LoginCredentials
    Returns
    Type Description
    IronSoftware.IPdfDocumentId

    Implements

    System.IDisposable
    ☀
    ☾
    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.