I using casperjs, so some example:
casper.start('http://lacoa.org/pdf/emergencysurvivalguide-lowres.pdf', function() {
this.wait(1000, function() {
casper.capture(filepath);
});
});
I understand that it is a file, not a page, but can I open a file in the browser and make capture? Thanks.