HtmlConverter
Convert Method (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 url,
ImageType type,
int width,
int height,
AspectRatio aspectRatio
)
Public Function Convert (
url As String,
type As ImageType,
width As Integer,
height As Integer,
aspectRatio As AspectRatio
) As HtmlToPdfResult
public:
HtmlToPdfResult^ Convert(
String^ url,
ImageType type,
int width,
int height,
AspectRatio aspectRatio
)
member Convert :
url : string *
type : ImageType *
width : int *
height : int *
aspectRatio : AspectRatio -> HtmlToPdfResult
Parameters
-
url
-
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