HtmlToPdfStaticRenderHtmlAsPdf Method (String, PdfPrintOptions)

Static version of the RenderHtmlAsPdf(String, String, String) function. Renders any Html strings into a PDF document.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
Syntax
public static PdfDocument StaticRenderHtmlAsPdf(
	string Html,
	PdfPrintOptions PrintOptions
)

Parameters

Html
Type: SystemString
Html to be turned into a PDF.
PrintOptions
Type: IronPdfPdfPrintOptions
Instance of PdfPrintOptions. Optional print options and settings.

Return Value

Type: PdfDocument
A PdfDocument
See Also
Install with Nuget