Click or drag to resize

HtmlConverter Convert Method (String, String, 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,
	string fileName,
	bool enableJavaScript,
	int timeout,
	SizeF pageSize,
	PdfMargins margins,
	LoadHtmlType urlHtml
)

Parameters

url
Type: System String
Url address of the html page.
fileName
Type: System String
The output pdf file name.
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