Click or drag to resize
Pdf Library for .NET

HtmlToPdf Methods

The HtmlToPdf type exposes the following members.

Methods
 NameDescription
Public methodCode exampleConvertHtmlString(String) Renders the specified HTML string and returns the result as a PDF document.
Public methodCode exampleConvertHtmlString(String, String) Renders the specified HTML string, resolving relative resources against the given base URL, and returns the result as a PDF document.
Public methodCode exampleConvertHtmlStringAsync(String) Asynchronously renders the specified HTML string and returns the result as a PDF document.
Public methodConvertHtmlStringAsync(String, String) Asynchronously renders the specified HTML string, resolving relative resources against the given base URL, and returns the result as a PDF document.
Public methodConvertHtmlStringAsync(String, CancellationToken) Asynchronously renders the specified HTML string and returns the result as a PDF document, stopping when the specified token is cancelled.
Public methodCode exampleConvertHtmlStringAsync(String, String, CancellationToken) Asynchronously renders the specified HTML string, resolving relative resources against the given base URL, and returns the result as a PDF document, stopping when the specified token is cancelled.
Public methodCode exampleConvertUrl Renders the web page at the specified URL and returns the result as a PDF document.
Public methodCode exampleConvertUrlAsync(String) Asynchronously renders the web page at the specified URL and returns the result as a PDF document.
Public methodCode exampleConvertUrlAsync(String, CancellationToken) Asynchronously renders the web page at the specified URL and returns the result as a PDF document, stopping when the specified token is cancelled.
Top
See Also