简体   繁体   English

DocuSignAPI.EnvelopePDF pdf = client.RequestPDF(id)

[英]DocuSignAPI.EnvelopePDF pdf = client.RequestPDF(id)

I have downloaded DocuSign-eSignature MS.Net sample from https://github.com/docusign/DocuSign-eSignature-SDK 我已经从https://github.com/docusign/DocuSign-eSignature-SDK下载了DocuSign-eSignature MS.Net示例

The code runs correctly and gets the documents signed from the recipients.However when we try to download the signed document by clicking Download button available under GetStatusAndDocs section then code mentioned below throws error, 该代码可以正常运行并获得收件人签名的文档。但是,当我们尝试通过单击GetStatusAndDocs部分下的“下载”按钮下载签名的文档时,下面提到的代码将引发错误,

This demo has encountered an error: Timeouts are not supported on this stream.
Please correct the issue and try again.

 DocuSignAPI.EnvelopePDF pdf = client.RequestPDF(id) 

This error is encountered only when the document is a pdf file.Works fine in case of text files. 仅当文档为pdf文件时才会遇到此错误。对于文本文件,可以正常工作。

Did you change any of the code or are you running the exact .NET version out of the box? 您是否更改了任何代码,或者是否正在开箱即用地运行确切的.NET版本? I'm guessing you've changed at least some of the code because you say it works for other file types but does not work for PDFs. 我猜您至少已经更改了一些代码,因为您说它适用于其他文件类型,但不适用于PDF。 The reason I think that is because if you look in the DownloadItem() function at line 122 in GetStatusAndDocs.aspx.cs you'll see: 我认为这是因为如果您查看GetStatusAndDocs.aspx.cs第122行DownloadItem()函数,将会看到:

Response.ContentType = "Application/pdf";

By default the SDK sets the document content type to PDF so if you haven't changed any code then I'm not sure how it's working for .txt and other file types? 默认情况下,SDK将文档内容类型设置为PDF,因此,如果您没有更改任何代码,那么我不确定它是否适用于.txt和其他文件类型?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM