Click or drag to resize

HtmlConverter Convert Method (String, Stream, Boolean, Int32, SizeF, PdfMargins)

Convert an html page to a pdf stream. 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
)

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.
See Also