Click or drag to resize
Pdf Library for .NET

PdfHtmlElementWebPageWidth Property

Gets or sets the width of the converted web page as it would appear in the internal browser used to render the html.

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public int WebPageWidth { get; set; }

Property Value

Int32
Remarks
The web page width is specified in pixels and the default value is 1024px.

The page is laid out the way a browser window this wide lays it out, and the result is scaled so that this width fills Width: a smaller width produces larger content in the pdf, a larger width smaller content.

Content wider than this width is not cut off: it is scaled down further, so that the widest content fits it.

A value of 0 or less uses the default width.

See Also