While trying IronPdf library to convert HTML with Charts, I was not getting the charts into the PDF file. PDF gets generated without the bar charts. Here is the sample link I was trying to convert to PDF - https://www.chartjs.org/samples/latest/charts/bar/horizontal.html
Code used:
var Renderer = new IronPdf.HtmlToPdf();
Renderer.PrintOptions.EnableJavaScript = true;
Renderer.PrintOptions.RenderDelay = 500;
Renderer.PrintOptions.CssMediaType = PdfPrintOptions.PdfCssMediaType.Print;
var PDF = Renderer.RenderUrlAsPdf("https://www.chartjs.org/samples/latest/charts/bar/horizontal.html");
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "horizontal.pdf");
PDF.SaveAs(path);