in reply to Is Perl capable of doing this?

Sure, install Firefox, setup a pdf viewer for firefox, install WWW::Mechanize::Firefox (and all prerequisites ) and take a page screenshot using www::mechanize::firefox

Apparently phantomjs can do this headless