Click or drag to resize

HtmlToPdfStaticRenderHTMLFileAsPdf Method

Renders an HTML file as PDF binary data.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 4.4.2.27556 (4.4.4.0)
Syntax
public PdfDocument StaticRenderHTMLFileAsPdf(
	string FilePath,
	PdfPrintOptions PrintOptions
)

Parameters

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

Return Value

Type: PdfDocument
A PdfDocument
See Also