check if file exists in pdf_download function of whitepaper controller