无头的HTML渲染,preferrably开源 [英] Headless HTML rendering, preferrably open source

查看:209
本文介绍了无头的HTML渲染,preferrably开源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在执行一些无头的HTML渲染基本上创造资源戏外,坚持的结果作为图像。其目的是利用HTML语言的一个子集,它适用于小屏幕设备(如PocketPC之间),因为我们的用户了解HTML,并从Photoshop到HTML标记的转变是可以接受的。

I'm currently looking to perform some headless HTML rendering to essentially create resources off screen and persist the result as an image. The purpose is to take a subset of the HTML language and apply it to small screen devices (like PocketPCs) because our users know HTML and the transition from Photoshop to HTML markup would be acceptable.

我也在考虑使用WPF成像因此,如果任何人都可以在有关其使用意见权衡(特别是工具,你将指向你的用户创建WPF布局可以转换成图像,以及它如何执行),这将是AP preciated。

I am also considering using WPF Imaging so if anyone can weigh in comments about its use (particularly tools you would point your users to for creating WPF layouts you can convert into images and how well it performs) it would be appreciated.

我的preference顺序是:

My order of preference is:

  1. 开源
  2. 高性能
  3. 在本地C#或C#包装
  4. 最低执行在Windows上的复杂性

我不是很担心如何功能丰富的无头渲染,因为我们不会做出大的使用JavaScript,Flash游戏,也没有其他嵌入式图像从一旁的对象。我会被罚款与使用IE浏览器,火狐,WebKit的,甚至是自定义呈现实施这么久什么,因为它的实施已接近符合标准。

I'm not very worried about how feature rich the headless rendering is since we won't make big use of JavaScript, Flash, nor other embedded objects aside from images. I'd be fine with anything that uses IE, Firefox, webkit, or even a custom rendering implementation so long as its implementation is close to standards compliant.

推荐答案

http://www.phantomjs.org/

完整的网络协议栈

PhantomJS是一个无头的WebKit的JavaScript API。它具有各种Web标准快速,原生支持:DOM处理,CSS选择器,JSON,Canvas和SVG

PhantomJS is a headless WebKit with JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.

这篇关于无头的HTML渲染,preferrably开源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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