Click or drag to resize

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
)

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