呈现HTML(转换为位图) [英] render HTML (convert to bitmap)

查看:168
本文介绍了呈现HTML(转换为位图)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以推荐最好的(并且最好是可移植的)方法来将HTML文档渲染到位图上吗?据我了解,我的主要2选项是WebKit和Gecko,但我无法找到如何做到这一点的好起点。当我最后5年前尝试过这样做时,我最终使用Gecko将文档发送到打印机,这不是我所需要的。为了阐明:服务器端,没有Java,没有.NET,批处理,性能,不交互,没有Javascript。

/ p>

解决方案

到目前为止,我发现的最有前途的解决方案是
http://sites.google.com/site/torisugari/commandlineprint2
的Firefox扩展程序,它增加了一个用于打印文件到打印机,PNG,PostScript或PDF文件。


Can somebody recommend the best (and preferably portable) way to render HTML documents onto a bitmap? As far as I understand my main 2 options are WebKit and Gecko, but I wasn't able to find a good starting point on how to do it. When I last tried doing this 5 years ago, I ended up using Gecko to send the document to a printer, which is not really what I need. I need rendering to a in-memory bitmap.

To clarify: server side, no Java, no .NET, batch processing, performance, not interactive, no Javascript.

解决方案

The most promising solution I found so far is this http://sites.google.com/site/torisugari/commandlineprint2 extension for Firefox which adds a command line option for printing a file to a printer, PNG, PostScript or PDF file.

这篇关于呈现HTML(转换为位图)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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