📅  最后修改于: 2022-03-11 14:49:02.339000             🧑  作者: Mango
var htmlContent = String.Format("Hello world: {0}",
DateTime.Now);
var htmlToPdf = new NReco.PdfGenerator.HtmlToPdfConverter();
var pdfBytes = htmlToPdf.GeneratePdf(htmlContent);