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.Universal
Assembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntax
public HtmlToPdfCssMediaType CssMediaType { get; set; }

Property Value

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