Porting html2canavas-proxy for php [closed]
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});
精彩评论