HtmlToPdfRenderHtmlAsPdfAsync Method

Renders any Html string as PDF asynchronously.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
public Task<PdfDocument> RenderHtmlAsPdfAsync(
	string Html,
	Uri BaseUrl = null


Type: SystemString
Html to be turned into a PDF.
BaseUrl (Optional)
Type: SystemUri
Setting the BaseURL property gives the Html a relative for content links such as hyper-links, images, CSS and JavaScript files.

Return Value

Type: TaskPdfDocument
Task of type PdfDocument
See Also
Install with Nuget