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.
Implements
Inherited Members
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 |