Click or drag to resize
Pdf Library for .NET

PdfHtmlSectionWebPageFixedSize 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.Pdf (in Select.Pdf.dll) Version: 20.2
Syntax
public bool WebPageFixedSize { get; set; }

Property Value

Type: Boolean
Remarks
The default value of this property is false.

If the web page does not fit the dimensions specified by the WebPageWidth and WebPageHeight properties and WebPageFixedSize is set to false, the converter will try to automatically calculate a larger width and height to be able to display the whole html content.

If WebPageFixedSize is set to true, this will indicate the converter not to calculate another width and height, but use width and height specified by WebPageWidth and WebPageHeight. These dimensions with be used even though the content will not fit the available space and it will be truncated.

Note: If WebPageFixedSize is set to true, a page height needs to be set using WebPageHeight, because the default value (0) will make the converter fail (cannot render a web page with no height).

See Also