Rendering HTML+Javascript server-side

假如想象 提交于 2019-11-28 09:27:47

You can consider using Watin. Generate your page then use Watin api to capture the generated page.

http://fwdnug.com/blogs/ddodgen/archive/2008/06/19/watin-api-capturewebpagetofile.aspx

I found Awesomium Does exactly what I need! "Windowless web-browser framework". Brilliant.

Basically you are trying to do things, which are not intended to be done in that way.

You generate HTML + Javascript to enable the browser to draw it. You write C# to enable any kind of server side things.

Generating HTML + Javascript on server to load it into a browser on server to be able to save PNG sounds bad.

Did you think about other approaches like generating the image using server side C# component? Basically, why do you really need to save it on server? Maybe somebody can provide better solution?

FtLie

See Generating HTML Canvas image data server-side? for a PhantomJs solution (similar to Node.js, but different, single file, no install)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!