I am trying to convert HTML page to pdf. Html page contains css, js code with svg images. I used wkhtmltopdf, iTextSharp and IronPdf dlls to get the exact html page into pdf. Functionality present in each of the above dll gives me pdf file containing content of html,css and js but excludes svg images. Is there any way to render the svg images into pdf. I am pasting code snippet here:
HtmlToPdf HtmlToPdf = new HtmlToPdf();
HtmlToPdf.PrintOptions.EnableJavaScript = true;
HtmlToPdf.PrintOptions.CssMediaType =PdfPrintOptions.PdfCssMediaType.Screen;
PdfResource PDF = HtmlToPdf.RenderUrlAsPdf(new Uri(htmlFilePath));
PDF.SaveAs(pdfFilePath);