Table of Contents

Method CreatePdfAsync

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

CreatePdfAsync(Uri, HtmlConversionOptions?)

Creates a new PdfDocument with the contents at the specified URL as an asynchronous operation.

public Task<PdfDocument> CreatePdfAsync(Uri url, HtmlConversionOptions? options = null)

Parameters

url Uri

The URL for the contents 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.

CreatePdfAsync(string, HtmlConversionOptions?)

Creates a new PdfDocument with the contents of the specified HTML file as an asynchronous operation.

public Task<PdfDocument> CreatePdfAsync(string fileName, HtmlConversionOptions? options = null)

Parameters

fileName string

The name of the HTML file 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.

CreatePdfAsync(Stream, HtmlConversionOptions?)

Creates a new PdfDocument with the contents of the specified HTML stream as an asynchronous operation.

public Task<PdfDocument> CreatePdfAsync(Stream stream, HtmlConversionOptions? options = null)

Parameters

stream Stream

The HTML stream 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.