There is a chance of pdfs getting corrupted while downloading from wordpress sites, if we use the normal upload path.ie in development/tmp_uploads OR in development/wp-content/plugins/plugin_name/tmp_uploads.This can resolve by using the upload folder URL as development/wp-content/themes/upload_folder_name and by using the relative path to file in downloading script.
