使用 wkhtmltopdf 为 100 多个潜在客户生成商业信函 [英] Generate a business letter for 100+ leads using wkhtmltopdf
问题描述
我们需要使用邮件合并功能为给定列表打印商业信函.
We need to print Business Letter for a given list with mail merge facilities.
我的客户不愿意在付费的 ASP.NET 控件上花费 $$ 来制作 PDF.所以我选择了 WKHTMLtoPDF,它对我们来说很好用,直到有一天客户试图获得 100 多个潜在客户的 PDF,导致 PDF 生成完全失败.它适用于 10-20 页的 PDF,但不适用于 100 页.
My client is not willing to spend $$ on a paid ASP.NET control to make PDF. So I opted in for WKHTMLtoPDF and it works fine for us until one day the client tried to get a PDF of 100+ leads, resulting in complete failure of PDF generation. It works just fine with a 10-20 page PDF, but not for 100.
有什么提示吗?提高性能的技巧?如果这很重要,我们将使用云托管的 IIS 7 和 ASP.NET 4.
Are there any tips & tricks to improve performance? We are using Cloud-hosted IIS 7 with ASP.NET 4 if that matters.
推荐答案
PDFSharp 库真的很不错!
我已经使用它一段时间了,我发现它足够灵活,可以满足您的需求.
I have used it for quite a while now, and I find it flexible enough to fulfill your needs.
但是有 将其用作独立库"的某些方面 - 例如,创建表格是一件令人头疼的事情,并且没有太多的文本格式选项.最好将它与 MigraDoc(PDFSharp 的扩展库)混合在一起.
However there are some aspects of using it as a "standalone library" - e.g creating tables is a headache and there aren't much text formatting options. It is much better to mix it together with MigraDoc (an extension library for PDFSharp).
这篇关于使用 wkhtmltopdf 为 100 多个潜在客户生成商业信函的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!