HtmlConverter
Convert Method (String, Stream, Boolean, Int32, SizeF, PdfMargins, LoadHtmlType)
|
Convert an html page to a pdf file. The Qt html engine plugin is required.
Namespace:
Spire.Additions.Qt
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public static void Convert(
string url,
Stream stream,
bool enableJavaScript,
int timeout,
SizeF pageSize,
PdfMargins margins,
LoadHtmlType urlHtml
)
Public Shared Sub Convert (
url As String,
stream As Stream,
enableJavaScript As Boolean,
timeout As Integer,
pageSize As SizeF,
margins As PdfMargins,
urlHtml As LoadHtmlType
)
public:
static void Convert(
String^ url,
Stream^ stream,
bool enableJavaScript,
int timeout,
SizeF pageSize,
PdfMargins^ margins,
LoadHtmlType urlHtml
)
static member Convert :
url : string *
stream : Stream *
enableJavaScript : bool *
timeout : int *
pageSize : SizeF *
margins : PdfMargins *
urlHtml : LoadHtmlType -> unit
Parameters
-
url
-
Type:
System
String
Url address of the html page.
-
stream
-
Type:
System.IO
Stream
The output pdf stream.
-
enableJavaScript
-
Type:
System
Boolean
Indicates whether enable JavaScript.
-
timeout
-
Type:
System
Int32
The timeout of loading html.
-
pageSize
-
Type:
System.Drawing
SizeF
The page size of output pdf file.
-
margins
-
Type:
Spire.Pdf.Graphics
PdfMargins
The margins of output pdf file.
-
urlHtml
-
Type:
Spire.Additions.Qt
LoadHtmlType
url or htmlcontent
See Also