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

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

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

Parameters

html
The html text.
doc
The output PdfDocument object.
options
The conversion options that would override Options if specified.

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