HtmlConverter
Convert Method (String, String, ImageType, Int32, Int32, AspectRatio)
|
Html Convert to Pdf.
Namespace:
Spire.Additions.Html
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public HtmlToPdfResult Convert(
string html,
string baseurl,
ImageType type,
int width,
int height,
AspectRatio aspectRatio
)
Public Function Convert (
html As String,
baseurl As String,
type As ImageType,
width As Integer,
height As Integer,
aspectRatio As AspectRatio
) As HtmlToPdfResult
public:
HtmlToPdfResult^ Convert(
String^ html,
String^ baseurl,
ImageType type,
int width,
int height,
AspectRatio aspectRatio
)
member Convert :
html : string *
baseurl : string *
type : ImageType *
width : int *
height : int *
aspectRatio : AspectRatio -> HtmlToPdfResult
Parameters
-
html
-
Type:
System
String
html.
-
baseurl
-
Type:
System
String
url of html.
-
type
-
Type:
Spire.Additions.Html
ImageType
ImageType.
-
width
-
Type:
System
Int32
width.
-
height
-
Type:
System
Int32
height.
-
aspectRatio
-
Type:
Spire.Additions.Html
AspectRatio
AspectRatio.
Return Value
Type:
HtmlToPdfResult
Returns the result of Pdf.
See Also