Click or drag to resize

HtmlToPdfRenderUrlAsPdf Method (Uri)

Renders the URL as PDF binary data.

Namespace:  IronPdf
Assembly:  IronPdf (in IronPdf.dll) Version: 4.4.2.27556 (4.4.4.0)
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