from ironpdf import * # Instantiate Renderer renderer = ChromePdfRenderer() # All IronPdf Rendering methods have Async equivalents task = renderer.RenderHtmlAsPdfAsync("<h1>Html with CSS and Images</h1>") task.Wait() #wait pdf = task.Result # Export to a file or Stream pdf.SaveAs("async.pdf")