HtmlConverter.CreateAsync Method

Creates a new instance of HtmlConverter as an asynchronous operation.

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

Syntax

C#
public static Task<HtmlConverter> CreateAsync(
	HtmlEngineOptions options = null
)
VB
Public Shared Function CreateAsync ( 
	Optional options As HtmlEngineOptions = Nothing
) As Task(Of HtmlConverter)

Parameters

options (Optional)
Type: BitMiracle.Docotic.Pdf.HtmlToPdf.HtmlEngineOptions
The options for the converter engine.

Return Value

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

Exceptions

ExceptionCondition
HtmlConverterException Unable to create the converter.

Remarks

This method checks the directory specified by the Path property for a compatible version of Chromium. If nothing is found, the method downloads a version from https://storage.googleapis.com to the specified directory. Make sure that your firewall allows access to https://storage.googleapis.com or download the compatible version of Chromium in advance.

See Also