.NET server based PDF generation

后端 未结 11 1975
孤街浪徒
孤街浪徒 2020-12-30 10:53

I\'d like to dynamically generate content and then render to a PDF file. This processing would take place on a remote hosting server so using virtual printers etc is out. Do

11条回答
  •  情深已故
    2020-12-30 11:06

    Free PDF Generator .NET (WkHtmlToPdf wrapper) can generate pretty PDF from HTML template with one line of code:

    var pdfBytes = (new NReco.PdfGenerator.HtmlToPdfConverter()).GeneratePdf(htmlContent);
    

    (all you need is one DLL, no external dependencies)

提交回复
热议问题