using IronPdf;
var renderer = new ChromePdfRenderer();
var pdfFromUrl = renderer.RenderUrlAsPdf("https://ironpdf.com/");
pdfFromUrl.SaveAs("website.pdf");
var pdfFromHtmlFile = renderer.RenderHtmlFileAsPdf("design.html");
pdfFromHtmlFile.SaveAs("markup.pdf");
var pdfFromHtmlString = renderer.RenderHtmlAsPdf("<p>Hello World</p>", "C:/assets/");
pdfFromHtmlString.SaveAs("markup_with_assets.pdf");