为php移植html2canavas代理

为php移植html2canavas代理,php,perl,Php,Perl,有人能帮我把这个脚本移植到php版本吗 我不懂珠儿,所以对我来说很难 谢谢 我不知道google appengine有perl接口,但您可以使用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(

有人能帮我把这个脚本移植到php版本吗

我不懂珠儿,所以对我来说很难


谢谢

我不知道google appengine有perl接口,但您可以使用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});

我相信这不是一个真正的问题。我也不懂“珍珠”