I have a problem when downloading PDF files with the following code:
WebClient client = new WebClient();
client.DownloadFile(remoteFilename, localFilename);
Whereas other files are downloaded successfully, when I download and save a PDF document it shows a document repaired error when I try to open it.