Table of Contents

Method CreatePdfFromStringAsync

Namespace
BitMiracle.Docotic.Pdf.HtmlToPdf
Assembly
BitMiracle.Docotic.Pdf.HtmlToPdf.dll

CreatePdfFromStringAsync(string, HtmlConversionOptions?)

Creates a new PdfDocument with the specified HTML code as an asynchronous operation.

public Task<PdfDocument> CreatePdfFromStringAsync(string htmlCode, HtmlConversionOptions? options = null)

Parameters

htmlCode string

The HTML code to create the document with.

options HtmlConversionOptions

The options for the conversion.

Returns

Task<PdfDocument>

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

Remarks

Check the Convert HTML to PDF in C# and VB.NET article for examples of using this method.