in reply to How to copy a PDF file

Are you saying the file served out by an http server? If so, it sounds like you want to use LWP.