HtmlToPdfStaticRenderUrlAsPdf Method (String, PdfPrintOptions, HttpLoginCredentials)

Static version of the RenderUrlAsPdf(String) 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(
	string UrlOrPath,
	PdfPrintOptions PrintOptions = null,
	HttpLoginCredentials LoginCredentials = null


Type: SystemString
An absolute Url or file path. 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