Winnovative HTML to PDF Converter Library for .NET
HtmlToPdfArea Constructor (x, y, width, htmlStringToConvert, htmlStringBaseURL, htmlViewerWidth)
NamespacesWinnovative.WnvHtmlConvertHtmlToPdfAreaHtmlToPdfArea(Single, Single, Single, String, String, Int32)
Winnovative HTML to PDF Converter Library for .NET
Creates a HTML string to PDF converter element and places the rendered PDF content inside a rectangle with the top left corner at (x,y) coordinate and having the width equal to the width specified as parameter. The HTML string to convert is given by the htmlStringToConvert parameter. The converter is using the specified value for HTML viewer width and the default value for the HTML viewer height.
Declaration Syntax
C#Visual BasicVisual C++
public HtmlToPdfArea(
	float x,
	float y,
	float width,
	string htmlStringToConvert,
	string htmlStringBaseURL,
	int htmlViewerWidth
)
Public Sub New ( _
	x As Single, _
	y As Single, _
	width As Single, _
	htmlStringToConvert As String, _
	htmlStringBaseURL As String, _
	htmlViewerWidth As Integer _
)
public:
HtmlToPdfArea(
	float x, 
	float y, 
	float width, 
	String^ htmlStringToConvert, 
	String^ htmlStringBaseURL, 
	int htmlViewerWidth
)
Parameters
x (Single)
The x position in points where the rendered content will be placed
y (Single)
The y position in points where the rendered content will be placed
width (Single)
The destination width in points for the rendered content. If the specified with is less or equal 0, the destination width will be given by the available width in page
htmlStringToConvert (String)
The HTML string convert to PDF.
htmlStringBaseURL (String)
The full URL of the page from where this string was taken used to resolve the images and CSS files referenced by a relative URL in the HTML string. This parameter is optional and the default value is NULL. When this parameter is NULL no base URL will be used. This paramter has effect only if the specified HTML string contains a HEAD element because a will be inserted automatically by the converter.
htmlViewerWidth (Int32)
The virtual browser width in pixels. The default value is 1024 pixels. The effect of this parameter is similar to viewing the HTML page in a browser window with the specified width. When this parameter is less or equal 0, the converter will try to auto-determine the HTML page width from the body element width.

Assembly: Winnovative.WnvHtmlConvert (Module: Winnovative.WnvHtmlConvert) Version: 7.0.0.0 (7.0.0.0)