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.Pdf (in Select.Pdf.dll) Version: 20.2
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