HtmlToPdfRenderUrlAsPdf Method (Uri)

Renders the URL as PDF binary data.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 2020.10.3
Syntax
public PdfDocument RenderUrlAsPdf(
	Uri Url
)

Parameters

Url
Type: SystemUri
An absolute Uri. Points to the Html document to be rendered as a PDF.

Return Value

Type: PdfDocument
A PdfDocument
Examples
HtmlToPdf myHtmlToPdf = new IronPdf.HtmlToPdf(); Uri  myUri = new Uri("http://www.example.com");
             myHtmlToPdf.RenderUrlAsPdf(myUri).SaveAs(@"Path\File.Pdf");
See Also
Install with Nuget