Creates a new
PdfDocument with the specified HTML code 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> CreatePdfFromStringAsync(
string htmlCode,
HtmlConversionOptions options = null
)
VB
Public Function CreatePdfFromStringAsync (
htmlCode As String,
Optional options As HtmlConversionOptions = Nothing
) As Task(Of PdfDocument)
Parameters
- htmlCode
- Type: System.String
The HTML code 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