Click or drag to resize
Pdf Library for .NET

PdfHtmlSectionWebPageHeight Property

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

Namespace:  SelectPdf
Assembly:  Select.Pdf (in Select.Pdf.dll) Version: 24.1
Syntax
public int WebPageHeight { get; set; }

Property Value

Type: Int32
Remarks
The web page height is specified in pixels and the default value is 0px. This means that the converter will automatically calculate the page height.

Generally this property does not need to be changed, but there are situations when the converter cannot calculate correctly the web page height (for example for web pages with frames) and in that case, WebPageHeight needs to be set, otherwise no content might appear in the generated pdf.

Note: If the WebPageHeight is set, the content that exceeds this page height is truncated and will not appear in the generated pdf document. Only using the default 0 value will allow the whole page content to be rendered all the time in the generated pdf document.

This property can also be set directly in the constructor of PdfHtmlSection class.

See Also