HtmlConverter.CreatePdfAsync Method (Uri, HtmlConversionOptions)

Creates a new PdfDocument with the contents at the specified URL as an asynchronous operation.

Namespace:  BitMiracle.Docotic.Pdf.HtmlToPdf
Assembly:  BitMiracle.Docotic.Pdf.HtmlToPdf (in BitMiracle.Docotic.Pdf.HtmlToPdf.dll)

Syntax

C#
public Task<PdfDocument> CreatePdfAsync(
	Uri url,
	HtmlConversionOptions options = null
)
VB
Public Function CreatePdfAsync ( 
	url As Uri,
	Optional options As HtmlConversionOptions = Nothing
) As Task(Of PdfDocument)

Parameters

url
Type: System.Uri
The URL for the contents to create the document with.
options (Optional)
Type: BitMiracle.Docotic.Pdf.HtmlToPdf.HtmlConversionOptions
The options for the conversion.

Return Value

Type: Task<PdfDocument>
The Task<TResult> that represents the asynchronous operation, containing the PdfDocument of the operation.

See Also