Click or drag to resize
Pdf Library for .NET

HtmlToPdfOptionsCssMediaType Property

Indicates what css styles are used when the web page is rendered.

Namespace:  SelectPdf
Assembly:  Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 24.1
Syntax
public HtmlToPdfCssMediaType CssMediaType { get; set; }

Property Value

Type: HtmlToPdfCssMediaType
Remarks
The default value is Screen and the page is rendered like in a regular web browser. If the page contains printer specific styles, the property should be set to Print to have the page rendered using those css styles.
See Also