HtmlConverter.CreatePdfAsync Method (String, HtmlConversionOptions)

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

Parameters

fileName
Type: System.String
The name of the HTML file 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