FOSS HTML到PDF在Python,.NET或命令行?命令行、HTML、FOSS、PDF

2023-09-04 06:50:52 作者:海蓝了夏迷了眼

我有谷歌,就像我可能,检查计算器几次,但我不能找到一个很好的 HTML PDF转换,可处理CSS。是否有一个自由和开放源码解决方案(即使是用于商业用途)?解决方法有很多,有各种各样的价格范围,但我一直在寻找一些开源和免费。我曾尝试PISA为Python和它的作品相当不错,但不是免费用于商业用途。有什么对于.NET?我还没有与iTextSharp的成功。

I have google as much as I possible, checked stackoverflow several times, and yet I can not find a good html to pdf converter that can handle css. Is there a free and open source solution (even for commercial usage)? There are many solutions, with huge variety of price ranges, but I was looking for something open source and free. I have tried PISA for Python and it works fairly well, but is not free for commercial usage. Is there anything for .Net? I have not had success with iTextSharp.

推荐答案

我已经wkhtmltopdf用在几个项目。 HTTP://$c$c.google.com/p/wkhtmltopdf/ 。它使用了WebKit渲染引擎,Safari浏览器的权力。你会得到完全是最新的渲染就像一个网页浏览器与CSS和所有的。

I've wkhtmltopdf used on a couple of projects. http://code.google.com/p/wkhtmltopdf/. It uses the webkit rendering engine, which powers the Safari browser. You'll get completely up to date rendering just like a web browser with CSS and all.

哦,它是开源的。

 
精彩推荐