开发者

Porting html2canavas-proxy for php [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

Can someone help me proting this script: https://github.com/niklasvh/html2canvas-proxy/blob/master/python/html2开发者_JS百科canvas.py to a php version?

i don't understand pearl, so it's very hard for me.

Thanks!


I don't know that there is a perl interface to google appengine, but you can use firefox :)

use WWW::Mechanize::Firefox;

# The original line in the example
my $png = $mech->content_as_png();

# Method 1
my $png = $mech->element_as_png($mech->selector('html')); 

# Method 2
my $png = $mech->content_as_png(undef, 
                {left=>0,top=>0,width=>200, height=>200});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜