Click or drag to resize

HtmlConverter FromString Method (String, String, ImageType, Int32, Int32, AspectRatio, String, String)

Html Convert to Image.

Namespace: Spire.Additions.Html
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public Image FromString(
	string html,
	string baseUrl,
	ImageType type,
	int width,
	int height,
	AspectRatio aspectRatio,
	string username,
	string password
)

Parameters

html
Type: System String
html string.
baseUrl
Type: System String
baseUrl.
type
Type: Spire.Additions.Html ImageType
ImageType.
width
Type: System Int32
width.
height
Type: System Int32
height.
aspectRatio
Type: Spire.Additions.Html AspectRatio
AspectRatio.
username
Type: System String
username.
password
Type: System String
password.

Return Value

Type: Image
Returns Image.
See Also