Click or drag to resize
Pdf Library for .NET

HtmlToImageWebPageFixedSize Property

Controls whether the web page is rendered with a fixed size internal browser or the size automatically extends to make the whole content visible.

Namespace: SelectPdf
Assembly: Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 26.4
Syntax
public bool WebPageFixedSize { get; set; }

Property Value

Boolean
Remarks
If the html content is not entirely visible in the web page viewer (browser) at the specified width, this property will control whether the html content is clipped or the web page browser width is automatically extended to make visible the whole html content.

The html browser width is given by the WebPageWidth property.

The default value of this property is false, but setting WebPageHeight to anything above zero turns it on - an image has no second page to flow onto, so a height necessarily bounds the capture. Set this to false after the height to capture the whole page at that viewport instead.

Note that the pdf converters read the same pair differently: on HtmlToPdfOptions and PdfHtmlSection a height only sizes the browser viewport and nothing is truncated until their own WebPageFixedSize is set, because a pdf can paginate instead of crop.

See Also