HtmlToPdfStaticRenderUrlAsPdf Method (Uri, PdfPrintOptions, HttpLoginCredentials)

Static version of the RenderUrlAsPdf(Uri) function. Renders all Html and assets at a given Url into a PDF file.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
public static PdfDocument StaticRenderUrlAsPdf(
	Uri Url,
	PdfPrintOptions PrintOptions = null,
	HttpLoginCredentials LoginCredentials = null


Type: SystemUri
An absolute Uri. Points to the Html document to be rendered as a PDF.
PrintOptions (Optional)
Type: IronPdfPdfPrintOptions
Instance of PdfPrintOptions. Optional print options and settings.
LoginCredentials (Optional)
Type: IronPdfHttpLoginCredentials
Instance of HttpLoginCredentials. Optional login credentials for Windows, Linux and Html Form login environments.

Return Value

Type: PdfDocument
A PdfDocument
See Also
Install with Nuget