downloads pdf from server