FOSS HTML到PDF在Python,.NET或命令行? [英] FOSS HTML to PDF in Python, .Net or command line?

查看:140
本文介绍了FOSS HTML到PDF在Python,.NET或命令行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有谷歌,就像我可能,检查计算器几次,但我不能找到一个很好的 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.

哦,它是开源的。

这篇关于FOSS HTML到PDF在Python,.NET或命令行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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