PdfDocumentAddHtmlAsync Method
Asynchronously renders HTML content in the document: the content starts at the position given by the element in
the current page and continues on as many new pages as it needs, inside the margins of the document. The links,
the form fields and, when the document is tagged, the structure of the rendered content are kept, and the
outline generated from the HTML headings, when the converter is set to generate one, is added to the bookmarks
of the document. The elements added after this call go to the last page of the content, below
LastPageRectangleNamespace: EvoPdf.NextAssembly: EvoPdf.Next (in EvoPdf.Next.dll) Version: 15.0.0
public Task<PdfHtmlRenderInfo> AddHtmlAsync(
PdfHtmlElement htmlElement,
CancellationToken ct = default
)
- htmlElement PdfHtmlElement
- The HTML content to render
- ct CancellationToken (Optional)
- A cancellation token that can be used to cancel the asynchronous operation
TaskPdfHtmlRenderInfo
A
PdfHtmlRenderInfo object describing the pages and the areas where the content was rendered