HtmlToPdfStaticRenderUrlAsPdfAsync Method (String, PdfPrintOptions)

Static asynchronous method that renders a URL as PDF.

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

Parameters

Url
Type: SystemString
URL to be turned into a PDF.
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