Click or drag to resize

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: 4.4.2.27556 (4.4.4.0)
Syntax
public static PdfDocument StaticRenderUrlAsPdf(
	Uri Url,
	PdfPrintOptions PrintOptions = null,
	HttpLoginCredentials LoginCredentials = null
)

Parameters

Url
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