Ddocument download method.