保存一个字符串与HTML作为图像 [英] save a string with html as image

查看:66
本文介绍了保存一个字符串与HTML作为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有来自网页的HTML整个字符串。
我要救这个字符串作为图像的所有HTML规则。
在年底拥有的图像从网页。我如何与C#和asp.net解决呢?

I have a string with whole html from web page. I want to save this string as image with all html rules. At the end to have image from webpage. How can I solve it with c# and asp.net?

推荐答案

您可以将HTML文件使用以下组件转换为PDF:

You can convert a HTML file to a PDF by using the following component:

的http://$c$c.google.com/p/wkhtmltopdf/

然后使用ghostscript的到PDF转换为图像。

Then use ghostscript to convert the PDF to an image.

这篇关于保存一个字符串与HTML作为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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