开发者

Click on Print gives a screen shot to save in rails3

I may fall under the list of possible duplicat开发者_如何学Pythones but still i could not find the answer according to my req.In my rails application i have some web pages with a link of print option. Now what i need is when i click on this print ,i should get a screen shot of the current web page and a popup box to save the image .Is there any plugin available for the same.

Also any queries for code are welcome

Thanx


You could go for phantomJs. Where you can alter the page HTML, manipulate CSS, insert & call javascript snippets, the way you need it.

Good documentation available and also you can find great deal of help in stackoverflow-phantomjs

Regards,
HBK


May i suggest that you use http://www.w3.org/TR/css-print/

if you want to make a screeenshot you have to work with the user env, so i suggest you look at this topic How do I take screenshots of web pages using ruby and a unix server?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜