HtmlConverter
Convert Method (String, Stream, LoadHtmlType)
|
Convert an html page to a pdf stream. The Qt html engine plugin is required.
During conversion, JavaScript is enabled, default timeout is 30 seconds.
The page size of output pdf file is A4 and margin is 90 (left-right) and 72 (top-bottom).
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,
LoadHtmlType urlHtml
)
Public Shared Sub Convert (
url As String,
stream As Stream,
urlHtml As LoadHtmlType
)
public:
static void Convert(
String^ url,
Stream^ stream,
LoadHtmlType urlHtml
)
static member Convert :
url : string *
stream : Stream *
urlHtml : LoadHtmlType -> unit
Parameters
-
url
-
Type:
System
String
Url address of the html page.
-
stream
-
Type:
System.IO
Stream
The output pdf stream.
-
urlHtml
-
Type:
Spire.Additions.Qt
LoadHtmlType
the load htmlcode or url
See Also