📜  将html转换为pdf c#代码示例

📅  最后修改于: 2022-03-11 14:49:03.684000             🧑  作者: Mango

代码示例1
var htmlContent = String.Format("Hello world: {0}", DateTime.Now);
var pdfBytes = (new NReco.PdfGenerator.HtmlToPdfConverter()).GeneratePdf(htmlContent);
//https://www.nrecosite.com/doc/NReco.PdfGenerator/