开发者

save a string with html as image

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 sol开发者_开发问答ve it with c# and asp.net?


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

http://code.google.com/p/wkhtmltopdf/

Then use ghostscript to convert the PDF to an image.


You can use this project as a source of inspiration for your code.

http://www.codeproject.com/KB/graphics/IECapture.aspx

Of course, this is a regular Winform-application

Or this component:

http://www.acasystems.com/en/web-thumb-activex/faq-convert-html-to-image-in-asp.net.htm

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜