|
PdfHtmlElement Constructor (Single, Single, Single, Single, String) |
Creates a html object that can be added to a pdf document.
Namespace:
SelectPdf
Assembly:
Select.Pdf (in Select.Pdf.dll) Version: 20.2
Syntax public PdfHtmlElement(
float x,
float y,
float width,
float height,
string url
)
Public Sub New (
x As Single,
y As Single,
width As Single,
height As Single,
url As String
)
Parameters
- x
- Type: SystemSingle
The position in points on the X axis where the element will be rendered. - y
- Type: SystemSingle
The position in points on the Y axis where the element will be rendered. - width
- Type: SystemSingle
The destination width in points for the rendered content. - height
- Type: SystemSingle
The destination height in points for the rendered content. - 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 (x,y) location in the pdf canvas.
The width and height of the element in pdf are also specified as parameters.
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