C# + VB.Net: HTML to PDF HTML to PDF
// Install IronPdf with Nuget:  PM> Install-Package IronPdf
using IronPdf;

var Renderer = new IronPdf.HtmlToPdf();
Renderer.RenderHtmlAsPdf("<h1>Html with CSS and Images</h1>").SaveAs("example.pdf");
<br />
<b>Fatal error</b>:  Maximum execution time of 30 seconds exceeded in <b>C:\Program Files (x86)\EasyPHP-Devserver-17\eds-www\cstovb\index.php</b> on line <b>31</b><br />

IronPDF allows developers to create PDF documents easily in C#, F#, and VB.Net for .NET Core and .NET Framework. In this example we show that a PDF document can be rendered using HTML. You can choose simple HTML like the above, or incorporate CSS, images and Javascript. IronPDF rendering closely follows Google Chrome.