wkhtmltopdf - 转换HTML code在C#中直接PDF [英] wkhtmltopdf - convert html code to pdf directly in C#

查看:339
本文介绍了wkhtmltopdf - 转换HTML code在C#中直接PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这个工具查找一个URL和repsponse转换为PDF格式。
我如何转换

I know this tool looks up on a url and converts the repsponse to pdf. How do I convert a

<html> content.. </html> 

成PDF?

我一直在寻找在wkhtml2pdf的帮助文件,看起来像它提供了标准输入的选项,但我真的不能弄清楚如何效仿标准输入。

I was looking at the help files on wkhtml2pdf and looks like it provides an option of stdin but I can't really figure out how to emulate stdin.

另外,如果你知道一个工具,它做了更好的工作,请建议我一些。

Also if you know a tool which does a better job, please suggest me some.

非常感谢!

推荐答案

wkhtmltopdf是一个免费的工具,但它不是在.NET编写的,它可能是一种很难融入你的asp.net应用程序。

wkhtmltopdf is a free tool, but it's not written in .NET and it could be kind of hard to integrate into your asp.net application.

您可以看看 iTextSharp的,这是免费的,但不能处理任何类型的HTML或者你可以看看商业工具将HTML转换为PDF格式,如 ExpertPDF ABCpdf ,可以处理任何HTML / CSS。

you can take a look at iTextSharp, which is free, but cannot handle any kind of html, or you can take a look at commercial tools to convert html to pdf, like ExpertPDF or ABCpdf, that can handle any html/css.

这篇关于wkhtmltopdf - 转换HTML code在C#中直接PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆