HtmlToPdfStaticRenderHTMLFileAsPdf Method

Renders an HTML file as PDF binary data.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
Syntax
public static PdfDocument StaticRenderHTMLFileAsPdf(
	string FilePath,
	PdfPrintOptions PrintOptions = null
)

Parameters

FilePath
Type: SystemString
Path to an Html file.
PrintOptions (Optional)
Type: IronPdfPdfPrintOptions
Instance of PdfPrintOptions. Optional print options and settings.

Return Value

Type: PdfDocument
A PdfDocument
See Also
Install with Nuget