Load htmlSourceCode to Pdf

Namespace: Spire.Pdf
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 7.9.2.0 (7.9.2.1020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public void LoadFromHTML(
	string htmlSourceCode,
	bool autoDetectPageBreak,
	PdfPageSettings setting,
	PdfHtmlLayoutFormat layoutFormat,
	bool isLoadComplete
)
Public Sub LoadFromHTML ( 
	htmlSourceCode As String,
	autoDetectPageBreak As Boolean,
	setting As PdfPageSettings,
	layoutFormat As PdfHtmlLayoutFormat,
	isLoadComplete As Boolean
)
public:
void LoadFromHTML(
	String^ htmlSourceCode, 
	bool autoDetectPageBreak, 
	PdfPageSettings^ setting, 
	PdfHtmlLayoutFormat^ layoutFormat, 
	bool isLoadComplete
)
member LoadFromHTML : 
        htmlSourceCode : string * 
        autoDetectPageBreak : bool * 
        setting : PdfPageSettings * 
        layoutFormat : PdfHtmlLayoutFormat * 
        isLoadComplete : bool -> unit 

Parameters

htmlSourceCode
String
htmlSourceCode
autoDetectPageBreak
Boolean
Auto detect page break
setting
PdfPageSettings
PdfPageSettings setting
layoutFormat
PdfHtmlLayoutFormat
PdfHtmlLayoutFormat layoutFormat
isLoadComplete
Boolean
by default false, when load Html DOM timeout(PdfHtmlLayoutFormat.LoadHtmlTimeout),convert uncompleted Html DOM to pdf. if true,until Html DOM load completed,then convert to pdf.

See Also