Click or drag to resize

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

Parameters

UrlOrPath
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