docusignapi - 如何使用 docusign API 将已签名的文档下载为合并的 PDF?
问题描述
此链接(https://developers.docusign.com/docs/esign-rest-api/how-to/download-envelope-documents/)提到了如何使用文档 ID 下载单独的文档。还找到了一种将文档下载为 zip 文件的方法。但是有没有办法使用 API 将它们下载为合并的 PDF?
谢谢。
解决方案
不确定您使用的是什么语言,但 C# 代码将是这个(注意“组合”选项)。对于其他语言 - 检查我的博客文章
// You would need to obtain an accessToken using your chosen auth flow
var apiClient = new ApiClient(basePath);
apiClient.Configuration.DefaultHeader.Add("Authorization", "Bearer " + accessToken);
var envelopesApi = new EnvelopesApi(apiClient);
string accountId; // accountId for your DocuSign account
string envelopeId; // envelopeId that you are working on
// produce a ZIP file with all documents including the CoC
Stream results1 = envelopesApi.GetDocument(accountId, envelopeId, "archive");
// produce a PDF combining all signed documents as well as the CoC
Stream results2 = envelopesApi.GetDocument(accountId, envelopeId, "combined");
// produce a particular document with documentId "1"
Stream results3 = envelopesApi.GetDocument(accountId, envelopeId, "1");
//TODO - use Stream to write or send the file for your use
推荐阅读
- python-3.x - 比较 datetime.now 和 EC2 映像 creation_date 的问题
- http - 我无法更改 NextJS 项目中的 HTTP 标头
- java - 尝试使用 jGRASP 进行编译时出现错误,不知道如何修复
- python - Pandas:折叠多索引数据框中的行
- python - mutliprocess.Proccess(args):TypeError:'int'对象不可迭代
- python - 带有 Gunicorn Dockerized 的 Flask 应用程序,监听地址:http://0.0.0.0:8000,但 URL 没有响应
- python - 如何根据方法返回的值过滤 Django 对象?
- gcc - 如何使 GCC 警告转到标准输出而不是标准错误?
- javascript - Determine an array index by clicking on element
- graphql - Apollo GraphQL 客户端 - 从 JS 修改数据(React)