in reply to PDF download

Have a look at merlyn's WWW::Mechanize example on CPAN here. Look under the title 'get-despair, by Randal Schwartz'. Randal's example sucks down all the pictures, you only need minor modification to suck down html and PDF's, with the mirror method.