Search Results for

    Show / Hide Table of Contents

    Class WebKitPdfRenderOptions

    Html To PDF output options for WebKitPdfRenderer. Specifies options such as Paper-Size, DPI, Headers and Footers and other Chromium specific browser setup options.

    Inheritance
    System.Object
    BasePdfRenderOptions
    WebKitPdfRenderOptions
    AdaptivePdfRenderOptions
    Implements
    IPdfRenderOptions
    IPaperSize
    IMargins
    IZoomable
    IViewPort
    IUnitTestable
    IHeadersAndFooters
    ICustomCss
    IJavascript
    ICssMediaType
    Inherited Members
    BasePdfRenderOptions.Clone()
    BasePdfRenderOptions.SetCustomPaperSizeInInches(Double, Double)
    BasePdfRenderOptions.SetCustomPaperSizeinMilimeters(Double, Double)
    BasePdfRenderOptions.SetCustomPaperSizeinCentimeters(Double, Double)
    BasePdfRenderOptions.SetCustomPaperSizeinPixelsOrPoints(Double, Double, Int32)
    BasePdfRenderOptions.CreatePdfFormsFromHtml
    BasePdfRenderOptions.CssMediaType
    BasePdfRenderOptions.CustomCssUrl
    BasePdfRenderOptions.EnableJavaScript
    BasePdfRenderOptions.FirstPageNumber
    BasePdfRenderOptions.GenerateUniqueDocumentIdentifiers
    BasePdfRenderOptions.TextFooter
    BasePdfRenderOptions.TextHeader
    BasePdfRenderOptions.HtmlFooter
    BasePdfRenderOptions.HtmlHeader
    BasePdfRenderOptions.MarginBottom
    BasePdfRenderOptions.MarginLeft
    BasePdfRenderOptions.MarginRight
    BasePdfRenderOptions.MarginTop
    BasePdfRenderOptions.PaperOrientation
    BasePdfRenderOptions.PaperSize
    BasePdfRenderOptions.PrintHtmlBackgrounds
    BasePdfRenderOptions.RenderDelay
    BasePdfRenderOptions.ApplyMarginToHeaderAndFooter
    BasePdfRenderOptions.Timeout
    BasePdfRenderOptions.Title
    BasePdfRenderOptions.ViewPortHeight
    BasePdfRenderOptions.ViewPortWidth
    BasePdfRenderOptions.Zoom
    Namespace: IronPdf
    Assembly: IronPdf.dll
    Syntax
    public class WebKitPdfRenderOptions : BasePdfRenderOptions, IPdfRenderOptions, IPaperSize, IMargins, IZoomable, IViewPort, IUnitTestable, IHeadersAndFooters, ICustomCss, IJavascript, ICssMediaType

    Constructors

    WebKitPdfRenderOptions()

    Default Constructor

    Declaration
    public WebKitPdfRenderOptions()

    Properties

    DPI

    Printing output DPI. 300 is standard for most print jobs. Higher resolutions produce clearer images and text, but also larger PDF files.

    Declaration
    public int DPI { get; set; }
    Property Value
    Type Description
    System.Int32

    FitToPaperWidth

    Where possible, shrinks the PDF content to 1 page of paper width.

    This applies when the PDF content is too wide for the given PaperSize (given that 1 HTML pixel = 1 DPI).

    Declaration
    public bool FitToPaperWidth { get; set; }
    Property Value
    Type Description
    System.Boolean

    GrayScale

    Outputs a black-and-white PDF

    Declaration
    public bool GrayScale { get; set; }
    Property Value
    Type Description
    System.Boolean

    InputEncoding

    The input character encoding as a string;

    Declaration
    public Encoding InputEncoding { get; set; }
    Property Value
    Type Description
    System.Text.Encoding

    JpegQuality

    Quality of any image that must be re-sampled. 0-100

    Declaration
    public int JpegQuality { get; set; }
    Property Value
    Type Description
    System.Int32

    Implements

    IPdfRenderOptions
    IPaperSize
    IMargins
    IZoomable
    IViewPort
    IUnitTestable
    IHeadersAndFooters
    ICustomCss
    IJavascript
    ICssMediaType

    Inherited members

    Clone()
    SetCustomPaperSizeInInches(Double, Double)
    SetCustomPaperSizeinMilimeters(Double, Double)
    SetCustomPaperSizeinCentimeters(Double, Double)
    SetCustomPaperSizeinPixelsOrPoints(Double, Double, Int32)
    CreatePdfFormsFromHtml
    CssMediaType
    CustomCssUrl
    EnableJavaScript
    FirstPageNumber
    GenerateUniqueDocumentIdentifiers
    TextFooter
    TextHeader
    HtmlFooter
    HtmlHeader
    MarginBottom
    MarginLeft
    MarginRight
    MarginTop
    PaperOrientation
    PaperSize
    PrintHtmlBackgrounds
    RenderDelay
    ApplyMarginToHeaderAndFooter
    Timeout
    Title
    ViewPortHeight
    ViewPortWidth
    Zoom
    ☀
    ☾
    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.