Is outdated example?
KES777 opened this issue · comments
https://metacpan.org/pod/WWW::Mechanize::Chrome::Examples#Example:-html-to-pdf.pl
This does not save generated content into file.
I did this manually:
...
use Mojo::File;
my $file = Mojo::File->new( 'test.pdf' );
$file->spurt( $page_pdf );
Sorry - the documentation was taken over from WWW::Mechanize::Firefox / WWW::Mechanize::PhantomJs , but the code was never implemented properly. This is now fixed by b7f01a3 .
thank you