Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 11 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您的问题是您正在尝试使用
wkhtmltoimage.exe
生成 PDF。使用wkhtmltopdf.exe
代替,你应该没问题。至于你的问题,我真的不相信有一个完美的工具。不过,我对 wkhtmltopdf非常 很满意。
Your issue is that you are attempting to use
wkhtmltoimage.exe
to generate a PDF. Usewkhtmltopdf.exe
instead and you should be fine.As far as your question, I don't really believe that there is a perfect tool. I have been very satisfied with wkhtmltopdf however.
我是 DocRaptor 的粉丝。它很容易集成到 Web 应用程序中,并且可以使用 C# 将 HTML 转换为 PDF 或 XLS 格式。
以下链接展示了如何使用它
I'm a fan of DocRaptor. It's easy to integrate into web apps and can use C# to convert HTML to PDF or XLS format.
Here's a link showing how to use it
iText 怎么样? http://itextpdf.com/
How about iText? http://itextpdf.com/