How can I create thumbnails of web pages using a layout engine in Perl?
Are there bindings for layout engines like Gecko or WebKit for Perl? I found Gtk2-Webkit on CPAN but I would like to know if there are other options.
My idea is to use on开发者_如何学JAVAe of those engines to create thumbnails of web pages from a Perl script.
I haven't tried it myself, but the documentation for WWW::Mechanize::FireFox
looks pretty impressive.
Update:
Tried it now. This rocks. You can indeed remote-control Firefox whatever way you want and create screen-shots easily.
XUL::Gui allows you to create GUI applications using Firefox. I am not sure if this corresponds to your needs, but it would be an interesting module to examine.
Update: XUL::Gui
indeed is an interesting module to examine, but I did not realize how far WWW::Mechanize::Firefox
had come.
Also Gtk2::MozEmbed
There's also Wx and just plain Gtk
精彩评论