HtmlToPdfStaticRenderUrlAsPdfAsync Method (Uri, PdfPrintOptions)

Static asynchronous method that renders a URL as PDF.

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


Type: SystemUri
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