Interface ChromePdfRenderOptions

Html or Url To PDF output options for PdfGenerator and PdfDocument static method. Specify options such as Paper-Size, DPI and other Chromium specific browser setup options.

Hierarchy

  • ChromePdfRenderOptions

Properties

createPdfFormsFromHtml?: boolean

Is create pdf forms from html. Turns all Html forms elements into editable PDF forms.

Default

true

cssMediaType?: CssMediaType
customCssUrl?: string

Allows a custom CSS style-sheet to be applied to Html before rendering.

Maybe a local file path or remote url.

Default

undefined

enableJavaScript?: boolean

Enables JavaScript and Json to be executed before the page is rendered.

Ideal for printing from Ajax / Angular Applications.

Also see waitFor

Default

true

firstPageNumber?: number
fitToPaperMode?: FitToPaperModes

Behavior when fitting HTML content to a physical paper size. Determines zoom and viewPortWidth. See FitToPaperModes for a detailed description of each mode. Default disables automatic fitting behavior.

Default

{@link FitToPaperModes.Default}
grayScale?: boolean

Outputs a black-and-white PDF

Default

false

htmlFooter?: HtmlAffix
htmlHeader?: HtmlAffix
inputEncoding?: string
javascript?: string
margin?: MarginConfig

Pdf "paper" margin in millimeters.

Set to zero for border-less and commercial printing applications.

Default

{@link MarginConfig} default 25
paperOrientation?: PdfPaperOrientation

The PDF paper orientation.

Default

{@link PdfPaperOrientation.Portrait}
paperSize?: PdfPaperSize

Set an output paper size for PDF pages. Use customPaperWidthMm, customPaperHeightMm for custom sizes.

Default

{@link PaperSize.A4}
printHtmlBackgrounds?: boolean

Prints background-colors and images from Html.

Default

true

textFooter?: TextAffix
textHeader?: TextAffix
timeout?: number

Render timeout in seconds

Default

60
title?: string

PDF Document Name and Title meta-data. Not required. Useful for mail-merge and automatic file naming in the IronPdf MVC and Razor extensions.

useMarginsOnHeaderAndFooter?: UseMargins

Use margin values from the main document when rendering headers and footers

Default

{@link UseMargins.LeftAndRight}
waitFor?: WaitFor

A wrapper object that holds configuration for wait-for mechanism for user to wait for certain events before rendering.

Default

{@link WaitForRenderDelay} with 20 milliseconds

Generated using TypeDoc