HtmlToPdfStaticRenderHTMLFileAsPdfAsync Method

Static asynchronous method that renders an HTML file as PDF.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
public static Task<PdfDocument> StaticRenderHTMLFileAsPdfAsync(
	string FilePath,
	PdfPrintOptions PrintOptions = null


Type: SystemString
File path to the HTML document.
PrintOptions (Optional)
Type: IronPdfPdfPrintOptions
Sets PDF output options such as paper-size, DPI, headers and footers using an instance of the IronPdf.PdfPrintOptions Class.

Return Value

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