private void Download(string documentId) { Stream stream = new FileStream("D://Download.pdf", FileMode.Create, FileAccess.Write); signService.DownloadDoc(documentId, ref stream); stream.Close(); Console.WriteLine("合同文件下载成功!"); }