Method CreateAsync
- Namespace
- BitMiracle.Docotic.Pdf.HtmlToPdf
- Assembly
- BitMiracle.Docotic.Pdf.HtmlToPdf.dll
CreateAsync(HtmlEngineOptions?)
Creates a new instance of HtmlConverter as an asynchronous operation.
public static Task<HtmlConverter> CreateAsync(HtmlEngineOptions? options = null)
Parameters
options
HtmlEngineOptionsThe options for the converter engine.
Returns
- Task<HtmlConverter>
The Task<TResult> that represents the asynchronous operation, containing the HtmlConverter of the operation.
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.
Exceptions
- HtmlConverterException
Unable to create the converter.