Click or drag to resize
Pdf Library for .NET

PdfHtmlSection Constructor (String)

Creates a html object that can be added to the header or footer templates of a pdf document.

Namespace:  SelectPdf
Assembly:  Select.HtmlToPdf (in Select.HtmlToPdf.dll) Version: 23.1
Syntax
public PdfHtmlSection(
	string url
)

Parameters

url
Type: SystemString
The full url of the web page to be converted to pdf. The url can be also the full path of a html file from the local file system.
Remarks
The html element is specified in this case by an url. The html will be converted and rendered at the (0,0) location in the pdf header or footer. The width of the element in pdf is the available width in pdf page and the height is auto determined.

The web page is rendered in an internal browser with the default width of 1024px and height auto determined. This can be changed using the WebPageWidth and WebPageHeight properties.

See Also