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

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

Syntax
 public static HtmlToPdfResult ConvertHtml(
   string html,
   PdfPage page,
   HtmlToPdfOptions options
);

Parameters

html
The html text.
page
The output page.
options
The conversion options that would override HtmlToPdf.Options if specified.

Return Value

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

Remarks

Use this method to render HTML on a specific PdfPage. Output beyond the visible page area will be clipped.

You can use this method to render multiple small HTML segment to the same page, or to render small "add-ons" to a page, such as header and footer.

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