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

Convert HTML text to PDF and write output to a file.

Syntax
 public static HtmlToPdfResult ConvertHtml(
   string html,
   string pdfFileName
);

Parameters

html
The html text.
pdfFileName
The output PDF file name.

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