Table of Contents
HtmlToPdf.ConvertHtml Method (String, PdfDocument)

Convert HTML text to PDF and write output to a PdfDocument object.

Syntax
 public static HtmlToPdfResult ConvertHtml(
   string html,
   PdfDocument doc
);

Parameters

html
The html text.
doc
The output PdfDocument object.

Return Value

Returns a HtmlToPdfResult object that contains additional information about the conversion.

Remarks

Note: Usually you must set HtmlToPdf.Options.BaseUrl before calling this method.

See Also