Optional PDF formatting settings that can be passed to StandaloneWebView.CreatePdf().
bool Landscape
Set to true for landscape mode or false for portrait mode. The default is false.
float MarginBottom
The bottom margin in inches. Only used if MarginType is set to StandalonePdfMarginType.Custom.
float MarginLeft
The left margin in inches. Only used if MarginType is set to StandalonePdfMarginType.Custom.
float MarginRight
The right margin in inches. Only used if MarginType is set to StandalonePdfMarginType.Custom.
float MarginTop
The top margin in inches. Only used if MarginType is set to StandalonePdfMarginType.Custom.
StandalonePdfMarginType MarginType
The margin type. The default is StandalonePdfMarginType.Default.
string PageRanges
Paper ranges to print, one based, e.g., "1-5, 8, 11-13". Pages are printed in the document order, not in the order specified, and no more than once. Defaults to empty string, which implies the entire document is printed. The page numbers are quietly capped to actual page count of the document, and ranges beyond the end of the document are ignored. If this results in no pages to print, an error is reported. It is an error to specify a range with start greater than end.
float PaperHeight
Output paper height in inches. If either PaperWidth or PaperHeight is less than or equal to zero, then the default paper size (letter, 8.5 x 11 inches) will be used.
float PaperWidth
Output paper width in inches. If either PaperWidth or PaperHeight is less than or equal to zero, then the default paper size (letter, 8.5 x 11 inches) will be used.
bool PreferCssPageSize
Set to true to prefer page size as defined by CSS. Defaults to false, in which case the content will be scaled to fit the paper size.
bool PrintBackground
Set to true to print background graphics. The default is false.
float Scale
The percentage to scale the PDF by before printing (e.g. .5 is 50%). If this value is less than or equal to zero the default value of 1.0 will be used.