Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Is Perl capable of doing this?

by zentara (Archbishop)
on Apr 06, 2012 at 20:06 UTC ( [id://963855]=note: print w/replies, xml ) Need Help??


in reply to Is Perl capable of doing this?

You probably can use Gtk2::Webkit, as shown in Perl Web Browser using Gtk2 and WebKit. The problem with automating it is to detect when the page is fully loaded before taking your screenshot. To solve that problem, you can setup callbacks on certain available signals, as shown in Another YouTube Video Downloader using GtkWebkit:
my $view = Gtk2::WebKit::WebView->new; $view->signal_connect( 'notify::progress' => \&notify_progress, undef +); $view->signal_connect( 'load_finished' => \&load_finished, undef );

Gtk2 can make PDF screenshots.

By the way, Gtk2::Webkit's capabilities have been greatly enhanced by the recent addition of Glib::Introspection. You might want to ask on the Perl/Gtk2 maillist on how to use Introspection, or whether it could help in your case.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://963855]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-19 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found