HtmlConverter
Convert Method (String, String, LoadHtmlType)
|
Convert an html page to a pdf file. 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,
string fileName,
LoadHtmlType urlHtml
)
Public Shared Sub Convert (
url As String,
fileName As String,
urlHtml As LoadHtmlType
)
public:
static void Convert(
String^ url,
String^ fileName,
LoadHtmlType urlHtml
)
static member Convert :
url : string *
fileName : string *
urlHtml : LoadHtmlType -> unit
Parameters
-
url
-
Type:
System
String
Url address of the html page.
-
fileName
-
Type:
System
String
The output pdf file name.
-
urlHtml
-
Type:
Spire.Additions.Qt
LoadHtmlType
the load htmlcode or url
See Also