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

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

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

Parameters

html
The html text.
page
The output page.

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