HtmlConverter.CreatePdfAsync Method (Stream, HtmlConversionOptions)

Creates a new PdfDocument with the contents of the specified HTML stream 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(
	Stream stream,
	HtmlConversionOptions options = null
)
VB
Public Function CreatePdfAsync ( 
	stream As Stream,
	Optional options As HtmlConversionOptions = Nothing
) As Task(Of PdfDocument)

Parameters

stream
Type: System.IO.Stream
The HTML stream 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